App Crashes before 'didFinishLaunchingWithOptions' is Called

The app runs first time without any problem. But from next time it crashes before didFinishLaunchingWithOptions is called.

Stack trace prints as below:

  • thread #3, stop reason = hit Objective-C exception
    • frame #0: 0x000000019eec389c libobjc.A.dylibobjc_exception_throw frame #1: 0x00000001a5d0284c CoreFoundation-[NSObject(NSObject) doesNotRecognizeSelector:] + 136 frame #2: 0x00000001a5ba3fa0 CoreFoundation___forwarding___ + 1592 frame #3: 0x00000001a5c0c350 CoreFoundation_CF_forwarding_prep_0 + 96 frame #4: 0x00000001a5bee290 CoreFoundation_CFLocaleCreateLocaleIdentifierForAvailableLocalizations + 76 frame #5: 0x00000001a5be63b8 CoreFoundation_CFLocaleCopyCurrentGuts + 816 frame #6: 0x00000001a5c0f1b4 CoreFoundation+[NSLocale currentLocale] + 16 frame #7: 0x000000019ffa00ac Foundation-[NSUserDefaults(NSUserDefaults) init] + 1132 frame #8: 0x000000019ff9e04c Foundation+[NSUserDefaults(NSUserDefaults) standardUserDefaults] + 64 frame #9: 0x00000001a81d41a0 UIKitCore___UIApplicationMainPreparations_block_invoke + 64 frame #10: 0x00000001038605a8 libdispatch.dylib_dispatch_call_block_and_release + 32 frame #11: 0x000000010386205c libdispatch.dylib_dispatch_client_callout + 20 frame #12: 0x00000001038766ac libdispatch.dylib_dispatch_root_queue_drain + 972 frame #13: 0x0000000103876e74 libdispatch.dylib_dispatch_worker_thread2 + 196 frame #14: 0x00000001f2be3dbc libsystem_pthread.dylib`_pthread_wqthread + 228

But from next time it crashes before didFinishLaunchingWithOptions is called.

Please post a full crash report. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

App Crashes before 'didFinishLaunchingWithOptions' is Called
 
 
Q