Fix Swift Debug

This commit is contained in:
kevinzhow
2015-07-12 18:43:58 +08:00
parent 976cfc883a
commit e7db20475b
3 changed files with 7 additions and 3 deletions
+4 -3
View File
@@ -1914,9 +1914,9 @@
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=0",
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
@@ -1929,6 +1929,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "-D DEBUG";
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
@@ -1984,7 +1985,7 @@
"$(PROJECT_DIR)/build/Debug-iphoneos/Pods",
"$(PROJECT_DIR)",
);
GCC_OPTIMIZATION_LEVEL = 3;
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = Yep/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+2
View File
@@ -22,6 +22,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
var isColdLaunch = true
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
println("App is On \(DEBUG)")
setSchemaVersion(13, Realm.defaultPath, { migration, oldSchemaVersion in
// We havent migrated anything yet, so oldSchemaVersion == 0
+1
View File
@@ -20,6 +20,7 @@ class YepConfig {
class func clientType() -> Int {
// TODO: clientType
#if DEBUG
return 2
#else