Add Debug flag

pull/2/head
Michael Scoff 7 years ago
parent 35882b2162
commit 85a23ac821
  1. 1
      Trust.xcodeproj/project.pbxproj
  2. 8
      Trust/Extensions/Bundle.swift

@ -1228,6 +1228,7 @@
INFOPLIST_FILE = Trust/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -D DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = com.sixdays.trust;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";

@ -10,3 +10,11 @@ extension Bundle {
return infoDictionary?["CFBundleVersion"] as? String
}
}
func isDebug() -> Bool {
#if DEBUG
return true
#else
return false
#endif
}

Loading…
Cancel
Save