From b8e2f2e8e8fd12526b475d9f804c6c271303508e Mon Sep 17 00:00:00 2001 From: Mariana Lenetis and Tim Kersey Date: Mon, 13 Apr 2015 10:00:35 -0700 Subject: [PATCH 1/2] Change sheme to run tests on Release build --- .../xcshareddata/xcschemes/JSONHelper-iOS.xcscheme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONHelper.xcodeproj/xcshareddata/xcschemes/JSONHelper-iOS.xcscheme b/JSONHelper.xcodeproj/xcshareddata/xcschemes/JSONHelper-iOS.xcscheme index 0bb8f67..a070507 100644 --- a/JSONHelper.xcodeproj/xcshareddata/xcschemes/JSONHelper-iOS.xcscheme +++ b/JSONHelper.xcodeproj/xcshareddata/xcschemes/JSONHelper-iOS.xcscheme @@ -40,7 +40,7 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES" - buildConfiguration = "Debug"> + buildConfiguration = "Release"> From 6ccce3850c4d09405f39ff56d23a3c2a3562a969 Mon Sep 17 00:00:00 2001 From: Mariana Lenetis and Tim Kersey Date: Mon, 13 Apr 2015 10:00:49 -0700 Subject: [PATCH 2/2] Empty string is needed to allow tests to run successfully on release build - Using a println statement also works --- JSONHelper/JSONHelper.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/JSONHelper/JSONHelper.swift b/JSONHelper/JSONHelper.swift index 165d38b..548e364 100644 --- a/JSONHelper/JSONHelper.swift +++ b/JSONHelper/JSONHelper.swift @@ -42,6 +42,7 @@ infix operator <-- { associativity right precedence 150 } // For optionals. public func <-- (inout property: T?, value: AnyObject?) -> T? { var newValue: T? + "" if let unwrappedValue: AnyObject = value { // We unwrapped the given value successfully, try to convert. if let convertedValue = unwrappedValue as? T {