One annoying thing when running tests in Xcode 6.1 is that the entire app has to run and launch its storyboard and root view controller. In my app this runs some server calls th
Other, in my opinion simpler way:
You edit your scheme to pass a boolean value as launch argument to your app. Like this:
All launch arguments are automatically added to your NSUserDefaults.
NSUserDefaults
You can now get the BOOL like:
BOOL test = [[NSUserDefaults standardUserDefaults] boolForKey:@"isTest"];