Can not reproduce a crash found by the app review. Can anyone help make sense of this crash report? - iphone

Apple rejected our iphone app, showing that it crashed on iPad. We could not reproduce the crash on 3 different iPads and asked them to confirm. Apple came back saying that they produced the crash on iPhone 4 (although the log shows iPhone 3). We can not reproduce it...
They produce the crash by: Launch app. Select Let me look around
first. App crashes.
The log they sent us back seems to not show any of the apps own methods called:
ncident Identifier: 8B5E90DE-99FD-4279-B634-2C777209F2B3
CrashReporter Key: 6e9ccd0fcdc29915ebe22fb7376bd343cdcc252a
Hardware Model: iPhone3,1
Process: Snug [297]
Path: /var/mobile/Applications/DB3EFF00-7E5E-492A-9108-1341B6371B0D/Snug.app/Snug
Identifier: Snug
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-09 13:00:32.642 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 6
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x319e7660 __semwait_signal_nocancel + 24
1 libsystem_c.dylib 0x3410b4da nanosleep$NOCANCEL + 118
2 libsystem_c.dylib 0x340dd3a0 usleep$NOCANCEL + 44
3 libsystem_c.dylib 0x340dd2b6 abort + 118
4 Snug 0x001f8760 uncaught_exception_handler + 12
5 CoreFoundation 0x37830950 __handleUncaughtException + 68
6 libobjc.A.dylib 0x3553533e _objc_terminate + 122
7 libc++abi.dylib 0x36f683be safe_handler_caller(void (*)()) + 70
8 libc++abi.dylib 0x36f6844a std::terminate() + 14
9 libc++abi.dylib 0x36f6981e __cxa_rethrow + 82
10 libobjc.A.dylib 0x355352a2 objc_exception_rethrow + 6
11 CoreFoundation 0x37786506 CFRunLoopRunSpecific + 398
12 CoreFoundation 0x37786366 CFRunLoopRunInMode + 98
13 GraphicsServices 0x33f45432 GSEventRunModal + 130
14 UIKit 0x31532cce UIApplicationMain + 1074
15 Snug 0x000f590c main (main.m:16)
16 Snug 0x000f58c0 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x319d73a8 kevent + 24
1 libdispatch.dylib 0x3095cea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3095cbc2 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x319e7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3409ff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x3409fcc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x319e7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3409ff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x3409fcc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x319d7004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x319d71fa mach_msg + 50
2 CoreFoundation 0x378043ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37803124 __CFRunLoopRun + 876
4 CoreFoundation 0x3778649e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37786366 CFRunLoopRunInMode + 98
6 WebCore 0x3312fc9c RunWebThread(void*) + 396
7 libsystem_c.dylib 0x340a572e _pthread_start + 314
8 libsystem_c.dylib 0x340a55e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x319d7004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x319d71fa mach_msg + 50
2 CoreFoundation 0x378043ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37803124 __CFRunLoopRun + 876
4 CoreFoundation 0x3778649e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37786366 CFRunLoopRunInMode + 98
6 Foundation 0x38016bb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x38016a7a -[NSThread main] + 66
8 Foundation 0x380aa58a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x340a572e _pthread_start + 314
10 libsystem_c.dylib 0x340a55e8 thread_start + 0
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x319e7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3409ff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x3409fcc8 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x319e7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3409ff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x3409fcc8 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x319e7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3409ff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x3409fcc8 start_wqthread + 0
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x319e7570 __select + 20
1 CoreFoundation 0x3780863a __CFSocketManager + 726
2 libsystem_c.dylib 0x340a572e _pthread_start + 314
3 libsystem_c.dylib 0x340a55e8 thread_start + 0
Thread 6 crashed with ARM Thread State:
r0: 0x00000004 r1: 0x00000000 r2: 0x00000000 r3: 0x00000000
r4: 0x0c8cc800 r5: 0x0036a08c r6: 0x04339000 r7: 0x04338fe0
r8: 0x3f29fd30 r9: 0x00000000 r10: 0x3f29fd50 r11: 0x00000000
ip: 0x00000170 sp: 0x04338fc0 lr: 0x3409ff3d pc: 0x319e7cd4
cpsr: 0x40000010
Can anyone enlighten us with this crash report?
UPDATE:
We nagged the app review team to send us the console trace, they did. In the trace it was evident that a call is being made to a String category method that does not exists.
The fault was that the particular category implementation file was not added to our release target. So everything worked perfectly but when the app was archived an implementation file was missing.

Unfortunately this log doesn't look like it'll be too useful - it just shows the main thread handling an exception that's being re-thrown from another thread; that thread has gone off to do something else at the time of the log.
You mention your suspicion about the RestKit loop and the possibility NSOperation is throwing the exception. That's possible and worth putting a check in (and crossing your fingers that it doesn't break something else...), but it's probably time to beg the app review team to give you better steps to reproduce. See if you can pin down what you all are doing differently. I wish I had a better answer for you, but I think exploring all you can about what you're doing in the background while in this part of the app and trying to figure out the missing steps to reproduce is going to be your best bet. Good luck!

The crash happened in Thread 0 at the top most Snug line 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x319e7660 __semwait_signal_nocancel + 24
1 libsystem_c.dylib 0x3410b4da nanosleep$NOCANCEL + 118
2 libsystem_c.dylib 0x340dd3a0 usleep$NOCANCEL + 44
3 libsystem_c.dylib 0x340dd2b6 abort + 118
4 Snug 0x001f8760 uncaught_exception_handler + 12
5 CoreFoundation 0x37830950 __handleUncaughtException + 68
6 libobjc.A.dylib 0x3553533e _objc_terminate + 122
7 libc++abi.dylib 0x36f683be safe_handler_caller(void (*)()) + 70
8 libc++abi.dylib 0x36f6844a std::terminate() + 14
9 libc++abi.dylib 0x36f6981e __cxa_rethrow + 82
10 libobjc.A.dylib 0x355352a2 objc_exception_rethrow + 6
11 CoreFoundation 0x37786506 CFRunLoopRunSpecific + 398
12 CoreFoundation 0x37786366 CFRunLoopRunInMode + 98
13 GraphicsServices 0x33f45432 GSEventRunModal + 130
14 UIKit 0x31532cce UIApplicationMain + 1074
15 Snug 0x000f590c main (main.m:16)
16 Snug 0x000f58c0 start + 32
There the app caused an exception which was not caught.
To symbolicate the report just drag it into xCode - you need to have the dSYM file for the reviewed version. Then xCode will show you the exact line where the problem occured. To get the dSym you need to "build and archive".
Also since the crash code is
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
the reason for the crash is a memory access problem. These kind of crash reports are generated in many cases where one tries to instert a nil object into an array or dictionary. (since the crash is in the main thread and not in Thread 6 as reported)
In your case I do not see any obvious insert, however I would check the logic starting in line 16 of your main file and all the subsequent. I would assume you are accessing an object which is not existent anymore at the time of this invokation.

You can analyze the crash report using the below
Steps to analyze crash report from apple:
Copy the release .app file which was pushed to the appstore, the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER.
OPEN terminal application and go to the folder created above (using CD command)
atos -arch armv7 -o YOURAPP.app/YOURAPP MEMORY_LOCATION_OF_CRASH. The memory location should be the one at which the app crashed as per the report.
Ex: atos -arch armv7 -o 'app name.app'/'app name' 0x0003b508
This would show you the exact line, method name which resulted in crash.
Ex: [classname functionName:]; -510
Symbolicating IPA
if we use IPA for symbolicating - just rename the extention .ipa with .zip , extract it then we can get a Payload Folder which contain app. In this case we don't need .dSYM file.
Link for this Symbolicating iPhone App Crash Reports

Related

Mysterious crash happening many times with strange stacktrace

I got this app live on the app store, for which in 10 days I got more than 6000 crashes! The stacktrace I can see on HockeyApp is quite cryptic, and I also get 2 different stacktraces depending on iOS version (5 or 6), but I'm pretty sure they are both the same crash.
What do you think about this? Where should I hunt the bug? Needless to say I can't reproduce it.
iOS 6
Thread 0 Crashed:
0 libobjc.A.dylib 0x3ae395d0 _objc_msgSend + 16
1 Foundation 0x338bc4a1 __NSThreadPerformPerform + 461
2 CoreFoundation 0x32f798f7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
3 CoreFoundation 0x32f791f3 __CFRunLoopDoSources0 + 363
4 CoreFoundation 0x32f77f2f __CFRunLoopRun + 647
5 CoreFoundation 0x32eeb23d _CFRunLoopRunSpecific + 357
6 CoreFoundation 0x32eeb0c9 _CFRunLoopRunInMode + 105
7 GraphicsServices 0x36aa633b _GSEventRunModal + 75
8 UIKit 0x34e072b9 _UIApplicationMain + 1121
9 <REDACTED> 0x00055943 main (main.m:16)
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x736f7477
Crashed Thread: 0
iOS 5:
Thread 0 Crashed:
0 libobjc.A.dylib 0x338c8f78 _objc_msgSend + 16
1 CoreFoundation 0x35c091fb -[NSObject performSelector:withObject:] + 43
2 Foundation 0x350d9747 ___NSThreadPerformPerform + 351
3 CoreFoundation 0x35c7ead3 ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
4 CoreFoundation 0x35c7e335 ___CFRunLoopDoSources0 + 365
5 CoreFoundation 0x35c7d045 ___CFRunLoopRun + 653
6 CoreFoundation 0x35c004a5 _CFRunLoopRunSpecific + 301
7 CoreFoundation 0x35c0036d _CFRunLoopRunInMode + 105
8 GraphicsServices 0x3399b439 _GSEventRunModal + 137
9 UIKit 0x333d8cd5 _UIApplicationMain + 1081
10 <REDACTED> 0x0003f32b main (main.m:16)
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xf10d9e21
Crashed Thread: 0
I have checked every call to performSelector:withObject: and I can't see any unrecognized selector being called. Where can the bug lie?
UPDATE ** Included stack traces from background threads as well
Thread 1:
0 libsystem_kernel.dylib 0x3568a3a8 _kevent + 24
1 libdispatch.dylib 0x339bdbc9 __dispatch_mgr_wakeup + 1
Thread 2:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 3:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 4:
0 libsystem_kernel.dylib 0x3569a0d8 ___psynch_mutexwait + 24
1 WebCore 0x3721d4ef __ZL17_WebTryThreadLockb + 215
2 WebCore 0x3721d7f3 __ZL14WebRunLoopLockP19__CFRunLoopObservermPv + 31
3 CoreFoundation 0x355f8b1b ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 19
4 CoreFoundation 0x355f6d57 ___CFRunLoopDoObservers + 259
5 CoreFoundation 0x355f701f ___CFRunLoopRun + 615
6 CoreFoundation 0x3557a4a5 _CFRunLoopRunSpecific + 301
7 CoreFoundation 0x3557a36d _CFRunLoopRunInMode + 105
8 WebCore 0x372c0ca3 __ZL12RunWebThreadPv + 403
9 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 5:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 6:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 7:
0 libsystem_kernel.dylib 0x3568a004 _mach_msg_trap + 20
1 CoreFoundation 0x355f83f3 ___CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x355f712b ___CFRunLoopRun + 883
3 CoreFoundation 0x3557a4a5 _CFRunLoopRunSpecific + 301
4 CoreFoundation 0x3557a36d _CFRunLoopRunInMode + 105
5 Foundation 0x349bfbb9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x349bfa81 -[NSThread main] + 73
7 Foundation 0x34a53591 ___NSThread__main__ + 1049
8 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 8:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 9:
0 libsystem_kernel.dylib 0x3569a570 ___select + 20
1 libsystem_c.dylib 0x34843735 __pthread_start + 321
Thread 10:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 11:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 12:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 13:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 14:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 15:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 16:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 17:
0 libsystem_kernel.dylib 0x3569acd4 ___workq_kernreturn + 8
Thread 0 crashed with ARM Thread State:
r0: 0x10910cc0 r1: 0x322194f6 r2: 0x00482a7a r3: 0x00000000
r4: 0xf10a6823 r5: 0x00481a7a r6: 0x33102823 r7: 0x2fef2e54
r8: 0x00482a7a r9: 0x0c88653d r10: 0x3efac9b4 r11: 0x00000000
ip: 0x004a710c sp: 0x2fef2e38 lr: 0x00315cf3 pc: 0x33242f78
cpsr: 0x20080030
Thanks
EDITED: I finally solved it thanks to DDPerformDebugger.m
The crash was caused by a third party framework provided by the customer.
Thanks everybody
It seems you have a memory and threading issue in your app. The app is trying to send a message (method) to an object that is already deallocated.
Both stack traces hint at the usage of threads. It looks like you are doing some work in a background thread and then sending a message to an object (on the main thread?) which does not exist any more. So it might be helpful to check the stack traces of your background threads and see what they are doing.

iPhone App crashing on startup on some devices (not all)

I'm starting to get desperate and I need advice. Here's the situation:
My recently updated App has started to crash directly on startup on some devices.
It did not before the update.
I cannot replicate this, although I have exactly the same device and software version.
It does not matter if it is a fresh uninstall/install or update, it crashes anyways.
The crash logs do not tell me anything useful. Here is one, perhaps someone smarter than me knows what happened:
Incident Identifier: 52C11BF9-A202-4ECC-B227-4A57899CB2E1
CrashReporter Key: 3129de7e18ddccceb41bf4d0ad0465bc2e66df29
Hardware Model: iPhone3,1
Process: GT-BetApp [3364]
Path: /var/mobile/Applications/5E9BA5D7-4337-44CD-BDAB-CE653680EEB3/GT-BetApp.app/GT-BetApp
Identifier: GT-BetApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-24 18:59:34.573 +0100
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x344258bf __exceptionPreprocess + 163
1 libobjc.A.dylib 0x346751e5 objc_exception_throw + 33
2 CoreFoundation 0x344257b9 +[NSException raise:format:] + 1
3 CoreFoundation 0x344257db +[NSException raise:format:] + 35
4 UIKit 0x37a42747 -[UINib instantiateWithOwner:options:] + 1567
5 UIKit 0x37a43bb9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 137
6 UIKit 0x3797ca45 -[UIApplication _loadMainNibFileNamed:bundle:] + 37
7 UIKit 0x37806227 -[UIApplication _loadMainInterfaceFile] + 223
8 UIKit 0x37800313 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 227
9 UIKit 0x377ce921 -[UIApplication handleEvent:withNewEvent:] + 1017
10 UIKit 0x377ce3bf -[UIApplication sendEvent:] + 55
11 UIKit 0x377cdd2d _UIApplicationHandleEvent + 5809
12 GraphicsServices 0x30c00df3 PurpleEventCallback + 883
13 CoreFoundation 0x343f9553 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
14 CoreFoundation 0x343f94f5 __CFRunLoopDoSource1 + 141
15 CoreFoundation 0x343f8343 __CFRunLoopRun + 1371
16 CoreFoundation 0x3437b4dd CFRunLoopRunSpecific + 301
17 CoreFoundation 0x3437b3a5 CFRunLoopRunInMode + 105
18 UIKit 0x377ff457 -[UIApplication _run] + 551
19 UIKit 0x377fc743 UIApplicationMain + 1091
20 GT-BetApp 0x00002c79 main (main.m:15)
21 GT-BetApp 0x00002c44 0x1000 + 7236
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3634032c __pthread_kill + 8
1 libsystem_c.dylib 0x33209f54 pthread_kill + 48
2 libsystem_c.dylib 0x33202fe4 abort + 88
3 libc++abi.dylib 0x3384cf64 abort_message + 40
4 libc++abi.dylib 0x3384a346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x346752dc _objc_terminate + 140
6 libc++abi.dylib 0x3384a3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3384a44a std::terminate() + 14
8 libc++abi.dylib 0x3384b81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x3467522e objc_exception_rethrow + 6
10 CoreFoundation 0x3437b53e CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3437b39e CFRunLoopRunInMode + 98
12 UIKit 0x377ff450 -[UIApplication _run] + 544
13 UIKit 0x377fc73c UIApplicationMain + 1084
14 GT-BetApp 0x00002c72 main (main.m:14)
15 GT-BetApp 0x00002c3c 0x1000 + 7228
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x363303b4 kevent + 24
1 libdispatch.dylib 0x3705ae78 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3705ab96 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x36340cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x331c630a _pthread_wqthread + 610
2 libsystem_c.dylib 0x331c609c start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x36340cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x331c630a _pthread_wqthread + 610
2 libsystem_c.dylib 0x331c609c start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x36330010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x36330206 mach_msg + 50
2 CoreFoundation 0x343f941c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x343f8154 __CFRunLoopRun + 876
4 CoreFoundation 0x3437b4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3437b39e CFRunLoopRunInMode + 98
6 WebCore 0x3684f128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x331cbc16 _pthread_start + 314
8 libsystem_c.dylib 0x331cbad0 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3eaf3ce8 r6: 0x00000002 r7: 0x2fdffa60
r8: 0x3fd97dec r9: 0x3384da4a r10: 0x0015d9e0 r11: 0x00156150
ip: 0x00000148 sp: 0x2fdffa54 lr: 0x33209f5b pc: 0x3634032c
cpsr: 0x00000010
As the only reference to my code in the report is to main.m, here it is:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
So here is my question: How can I determine the cause? What can I do to get more information on this crash (I can send versions to someone who experiences this crash)? What can I do to prevent it?
Any advice is much appreciated and thank you in advance!
UPDATE:
I found the solution and it was a silly mistake on my part.
The MainWindow.xib could not load when there was no localization for the device's language. I always thought, it would fall back English, but it did not (anymore).
In previous versions, this was never an issue. I don't know why this behavior changed.
Thanks for all the replies, you helped me search in the right direction!
The application is trying to read the main nib file, as specified in your app's Info.plist file.
In the plist file there is an entry like
NSMainNibFile -> MyMainWindow
which UIApplicationMain uses to load your initial view controller from. This file seems to be damaged. A common error is to use a custom class for a contained object and then change/remove that class later without changing the nib file.
To further understand the error it would be very helpful to know the description of the exception that's being raised. You'll find that in the console log.

app works on simulator but not on iPhone

I have developed and iPhone app and it seems to work fine on the simulator 5.0. However, when I tried to test it on the real device, an iphone w/ ios 5, it's not working.
The app launched but all I see was a black screen.
Here's the crash log I found in the Device Log
Sorry I am pretty new to this.. I am not sure if these are symbolicated. (seems like they are?)
Incident Identifier: B2601015-4CBF-478D-B9C3-2D2B4BEED892
CrashReporter Key: 9c71d7c2ed64b2862a0a6d90e3d4ce839868a03c
Hardware Model: iPhone4,1
Process: memoryChallenger [21037]
Path: /var/mobile/Applications/C0981716-8CDF-4816-8E94- 261CD8F164FD/memoryChallenger.app/memoryChallenger
Identifier: memoryChallenger
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-30 21:54:18.753 -0800
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x37ecb8bf __exceptionPreprocess + 163
1 libobjc.A.dylib 0x319b11e5 objc_exception_throw + 33
2 CoreFoundation 0x37ecb7b9 +[NSException raise:format:] + 1
3 CoreFoundation 0x37ecb7db +[NSException raise:format:] + 35
4 UIKit 0x354f7747 -[UINib instantiateWithOwner:options:] + 1567
5 UIKit 0x354f8bb9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 137
6 UIKit 0x35431a45 -[UIApplication _loadMainNibFileNamed:bundle:] + 37
7 UIKit 0x352bb227 -[UIApplication _loadMainInterfaceFile] + 223
8 UIKit 0x352b5313 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 227
9 UIKit 0x35283921 -[UIApplication handleEvent:withNewEvent:] + 1017
10 UIKit 0x352833bf -[UIApplication sendEvent:] + 55
11 UIKit 0x35282d2d _UIApplicationHandleEvent + 5809
12 GraphicsServices 0x379a0df3 PurpleEventCallback + 883
13 CoreFoundation 0x37e9f553 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
14 CoreFoundation 0x37e9f4f5 __CFRunLoopDoSource1 + 141
15 CoreFoundation 0x37e9e343 __CFRunLoopRun + 1371
16 CoreFoundation 0x37e214dd CFRunLoopRunSpecific + 301
17 CoreFoundation 0x37e213a5 CFRunLoopRunInMode + 105
18 UIKit 0x352b4457 -[UIApplication _run] + 551
19 UIKit 0x352b1743 UIApplicationMain + 1091
20 memoryChallenger 0x000050d9 main (main.m:14)
21 memoryChallenger 0x000027ec start + 40
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3376532c __pthread_kill + 8
1 libsystem_c.dylib 0x36331f54 pthread_kill + 48
2 libsystem_c.dylib 0x3632afe4 abort + 88
3 libc++abi.dylib 0x37e10f64 abort_message + 40
4 libc++abi.dylib 0x37e0e346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x319b12dc _objc_terminate + 140
6 libc++abi.dylib 0x37e0e3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x37e0e44a std::terminate() + 14
8 libc++abi.dylib 0x37e0f81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x319b122e objc_exception_rethrow + 6
10 CoreFoundation 0x37e2153e CFRunLoopRunSpecific + 398
11 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98
12 UIKit 0x352b4450 -[UIApplication _run] + 544
13 UIKit 0x352b173c UIApplicationMain + 1084
14 memoryChallenger 0x000050d2 main (main.m:14)
15 memoryChallenger 0x000027e4 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x337553b4 kevent + 24
1 libdispatch.dylib 0x37b89f74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x37b89c92 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362ee09c start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362ee09c start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x33755010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33755206 mach_msg + 50
2 CoreFoundation 0x37e9f41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37e9e154 __CFRunLoopRun + 876
4 CoreFoundation 0x37e214d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98
6 WebCore 0x326f2128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x362f3c16 _pthread_start + 314
8 libsystem_c.dylib 0x362f3ad0 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f31dce8 r6: 0x00000002 r7: 0x2fdff864
r8: 0x3f14edec r9: 0x00000000 r10: 0x00188cc0 r11: 0x00185b40
ip: 0x00000148 sp: 0x2fdff858 lr: 0x36331f5b pc: 0x3376532c
cpsr: 0x00000010
it seems like this line here is what I am looking for..
20 memoryChallenger 0x000050d9 main (main.m:14)
and it's this line in main:
int retVal = UIApplicationMain(argc, argv, nil, nil);
But it's not getting me anywhere..
Can someone please guide me to the right direction?
Thanks!
From this line,
-[UINib instantiateWithOwner:options:] + 1567
it looks like your application's XIB file wasn't copied over properly to device.
Do a clean install.
For my case, it is due to the XIB file not found for iOS 5 (even though it's copied into the app bundle).
It is due to using Base Internationalization, which is only supported in iOS 6.
Strangely, running on Simulator with iOS 5 will work. That got to be a bug.
I have detailed my experience after releasing my app with this dumb startup crash: http://samwize.com/2012/11/22/warning-do-not-use-base-internationalization-in-ios-5/
In IB, xib's Target Membership -> current target is not checked
Just another scenario when this occurs.

Getting to the bottom of a crash

Here is the crash report, the only entry of my app are the last two lines of the Thread 0 that crashed. Is it possible to get to the bottom of this crash?
CrashReporter Key: 4cc3bf614179cfc630ec151430177d3d47175000
Hardware Model: iPad2,1
Process: MyApp [750]
Path: /var/mobile/Applications/96D92A43-EA51-4988-88ED-AFDF005995DF/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-11-20 09:19:34.803 -0600
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
(0x37ee18bf 0x37a2d1e5 0x37ee17b9 0x37ee17db 0x35178cab 0x15b53 0x12ded 0x319c27ff 0x2c4b 0x3520550f 0x37ead577 0x37e390cf 0x351793fb 0xb66d 0x31a3c565 0x31ab4ce7 0x35211943 0x37eb5a63 0x37eb56c9 0x37eb429f 0x37e374dd 0x37e373a5 0x37c0efcd 0x319b7743 0x2585 0x2550)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3054232c 0x30531000 + 70444
1 libsystem_c.dylib 0x379e3f54 0x37996000 + 319316
2 libsystem_c.dylib 0x379dcfe4 0x37996000 + 290788
3 libc++abi.dylib 0x3043ef64 0x30438000 + 28516
4 libc++abi.dylib 0x3043c346 0x30438000 + 17222
5 libobjc.A.dylib 0x37a2d2dc 0x37a24000 + 37596
6 libc++abi.dylib 0x3043c3be 0x30438000 + 17342
7 libc++abi.dylib 0x3043c44a 0x30438000 + 17482
8 libc++abi.dylib 0x3043d81e 0x30438000 + 22558
9 libobjc.A.dylib 0x37a2d22e 0x37a24000 + 37422
10 CoreFoundation 0x37e3753e 0x37e28000 + 62782
11 CoreFoundation 0x37e3739e 0x37e28000 + 62366
12 GraphicsServices 0x37c0efc6 0x37c0b000 + 16326
13 UIKit 0x319b773c 0x31986000 + 202556
14 MyApp 0x0000257e main (main.m:14)
15 MyApp 0x00002548 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x305323b4 0x30531000 + 5044
1 libdispatch.dylib 0x30a9df74 0x30a9a000 + 16244
2 libdispatch.dylib 0x30a9dc92 0x30a9a000 + 15506
Thread 2:
0 libsystem_kernel.dylib 0x30542cd4 0x30531000 + 72916
1 libsystem_c.dylib 0x379a030a 0x37996000 + 41738
2 libsystem_c.dylib 0x379a009c 0x37996000 + 41116
Thread 3:
0 libsystem_kernel.dylib 0x30542cd4 0x30531000 + 72916
1 libsystem_c.dylib 0x379a030a 0x37996000 + 41738
2 libsystem_c.dylib 0x379a009c 0x37996000 + 41116
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x30532010 0x30531000 + 4112
1 libsystem_kernel.dylib 0x30532206 0x30531000 + 4614
2 CoreFoundation 0x37eb541c 0x37e28000 + 578588
3 CoreFoundation 0x37eb4154 0x37e28000 + 573780
4 CoreFoundation 0x37e374d6 0x37e28000 + 62678
5 CoreFoundation 0x37e3739e 0x37e28000 + 62366
6 WebCore 0x3290e128 0x32866000 + 688424
7 libsystem_c.dylib 0x379a5c16 0x37996000 + 64534
8 libsystem_c.dylib 0x379a5ad0 0x37996000 + 64208
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f7c2ce8 r6: 0x00000002 r7: 0x2fdffa6c
r8: 0x00000001 r9: 0x00000000 r10: 0x00000000 r11: 0x35cf9201
ip: 0x00000148 sp: 0x2fdffa60 lr: 0x379e3f5b pc: 0x3054232c
cpsr: 0x000f0010
You need to symbolicate the "Last Exception backtrace" to find out where in your app that crash happened.
To do that open terminal and go to the directory where the dSYM of that app version is located:
atos -arch armv7 -o your.app.dSYM/Contents/Resource/DWARF/binary 0x15b53 0x12ded 0x2c4b 0xb66d
Replace your.app.dSYM with the actual filename and binary with the filename inside the dSYM package in this directory) using the addresses in the apps address range (which you can find lower in the crash report below Binary Images). I added the ones which seem to be in it.
You can catch those crash reports yourself by using the open source PLCrashReporter framework and some other tools/services on top of it. Some even support automatic symbolication. I mentioned some options in this answer: https://stackoverflow.com/q/8242215/474794
For your kind of crash, it is important to know the last exception backtrace, or even other than the main thread. Only PLCrashReporter based solutions will provide you the information for that!
Since the error is SIGABRT, I would suggest checking all of your variables for leaks. I got this error all of the time when I was first working on my applications.
The best way to check:
Open Finder>Macintosh HD>Developer>Applications>Instruments
In XCode, rather than running the app, select Profile with Instruments open. Instruments will then pop up and ask you what to analyze. From the iOS Simulator submenu, select Memory>Zombies add and record. Run through your application to the point where your app crashed and Instruments should tell you what was accessed at that time.
Hope this helps
On a general practicality note, if you are looking for a better way to test your apps, (before release) I would strongly suggest TestFlight: https://testflightapp.com/
It permits 'on-the-fly' beta testing, and gives detailed crash reports such as this:
Device Name: iPhone
Model: iPhone 4
Version: 5.0
Language: en_US (English)
Carrier: Verizon
Timezone: EST
Architecture: armv7
Connection State: Cellular Active
Exception reason -[__NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
Stacktrace (7) 0 Trail Tracker 0x0007ad89 +[TFCrashHandler backtrace] + 429
1 Trail Tracker 0x0007afc7 TFHandleExceptions + 35
2 CoreFoundation 0x34681987 __handleUncaughtException + 74
3 libobjc.A.dylib 0x3678c2d1 _objc_terminate + 128
4 libc++abi.dylib 0x372993c5 _ZL19safe_handler_callerPFvvE + 76
5 libc++abi.dylib 0x37299451 _ZdlPv + 0
6 libc++abi.dylib 0x3729a825 __cxa_current_exception_type + 0
7 libobjc.A.dylib 0x3678c235 objc_exception_rethrow + 12
8 CoreFoundation 0x345d7545 CFRunLoopRunSpecific + 404
9 CoreFoundation 0x345d73a5 CFRunLoopRunInMode + 104
10 GraphicsServices 0x34d4bfed GSEventRunModal + 156
11 UIKit 0x3613e743 UIApplicationMain + 1090
12 Trail Tracker 0x0001738b main (main.m:14)
13 Trail Tracker 0x00017344 start + 40
There is a lot that you can do with TestFlight, so check it out :)
PS: It's not my product, so sorry if it seems like I'm advertising/spamming. It's not my product, I just like it a lot. I thought that it pertained to this topic, due to the nature of the question. Cheers!

Xcode encountered an internal logic error

Need help
I get the following error when i try to change anything in buildsetting section in Xcode 4.Once i change the value immediately i get the error as follows and xcode crashes.
Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state. Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.**
The log says as follows
Process: Xcode [13518]
Path: /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.0.2 (99)
Build Info: IDEApplication-990000~53
Code Type: X86-64 (Native)
Parent Process: launchd [103]
Date/Time: 2011-07-10 18:14:39.963 +0530
OS Version: Mac OS X 10.6.6 (10D573)
Report Version: 6
Interval Since Last Report: 6925 sec
Crashes Since Last Report: 3
Per-App Interval Since Last Report: 913 sec
Per-App Crashes Since Last Report: 3
Anonymous UUID: 860BC8C7-2425-44F4-87CA-B9680C691297
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
ProductBuildVersion: 4A2002a
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[NSCFSet removeObject:]: attempt to remove nil
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff85188d06 __exceptionPreprocess (in CoreFoundation)
1 0x00007fff83e300f3 objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff85188b47 +[NSException raise:format:arguments:] (in CoreFoundation)
3 0x00007fff85188ad4 +[NSException raise:format:] (in CoreFoundation)
4 0x00007fff8272342b -[NSCFSet removeObject:] (in Foundation)
5 0x000000010002ee1b -[DVTModelObjectGraph didDeleteModelObject:] (in DVTFoundation)
6 0x0000000100516b97 -[IDEFileReference _invalidateStartingWith:changeBlock:] (in IDEFoundation)
7 0x00000001005167f5 -[IDEFileReference _invalidateResolvedFilePath] (in IDEFoundation)
8 0x00007fff8273965b __NSThreadPerformPerform (in Foundation)
9 0x00007fff85125f21 __CFRunLoopDoSources0 (in CoreFoundation)
10 0x00007fff85124119 __CFRunLoopRun (in CoreFoundation)
11 0x00007fff851238df CFRunLoopRunSpecific (in CoreFoundation)
12 0x00007fff83234ada RunCurrentEventLoopInMode (in HIToolbox)
13 0x00007fff8323483d ReceiveNextEventCommon (in HIToolbox)
14 0x00007fff83234798 BlockUntilNextEventMatchingListInMode (in HIToolbox)
15 0x00007fff800a4a2a _DPSNextEvent (in AppKit)
16 0x00007fff800a4379 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
17 0x00007fff8006a05b -[NSApplication run] (in AppKit)
18 0x00007fff80062d7c NSApplicationMain (in AppKit)
19 0x0000000100000eec
abort() called
objc[13518]: garbage collection is ON
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff824a3886 __kill + 10
1 libSystem.B.dylib 0x00007fff82543eae abort + 83
2 com.apple.dt.IDEKit 0x0000000100949290 +[IDEAssertionHandler _handleAssertionWithLogString:] + 343
3 com.apple.dt.IDEKit 0x0000000100949de3 -[IDEAssertionHandler handleUncaughtException:] + 563
4 com.apple.AppKit 0x00007fff8006a15b -[NSApplication run] + 651
5 com.apple.AppKit 0x00007fff80062d7c NSApplicationMain + 364
6 com.apple.dt.Xcode 0x0000000100000eec 0x100000000 + 3820
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff8249a996 select$DARWIN_EXTSN$NOCANCEL + 10
1 libSystem.B.dylib 0x00007fff824704a7 _dispatch_mgr_invoke + 388
2 libSystem.B.dylib 0x00007fff82470094 _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x00007fff8246fbbe _dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x00007fff8246f4e8 _pthread_wqthread + 353
5 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff8245575a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff82455dcd mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff85124452 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff851238df CFRunLoopRunSpecific + 575
4 com.apple.DTDeviceKit 0x0000000114016598 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 314
5 com.apple.Foundation 0x00007fff82721ead __NSThread__main__ + 1429
6 libSystem.B.dylib 0x00007fff8248e8b6 _pthread_start + 331
7 libSystem.B.dylib 0x00007fff8248e769 thread_start + 13
Thread 3:
0 libSystem.B.dylib 0x00007fff82499286 select$DARWIN_EXTSN + 10
1 com.apple.CoreFoundation 0x00007fff85145ef2 __CFSocketManager + 818
2 libSystem.B.dylib 0x00007fff8248e8b6 _pthread_start + 331
3 libSystem.B.dylib 0x00007fff8248e769 thread_start + 13
Thread 4:
0 libSystem.B.dylib 0x00007fff82490316 __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff82494131 _pthread_cond_wait + 1286
2 com.apple.Xcode.DevToolsCore 0x00000001151d9f04 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] + 330
3 com.apple.Foundation 0x00007fff82721ead __NSThread__main__ + 1429
4 libSystem.B.dylib 0x00007fff8248e8b6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff8248e769 thread_start + 13
Thread 5:
0 libSystem.B.dylib 0x00007fff82490316 __semwait_signal + 10
1 libSystem.B.dylib 0x00007fff82494131 _pthread_cond_wait + 1286
2 com.apple.CoreVideo 0x00007fff824048ba CVDisplayLink::runIOThread() + 804
3 com.apple.CoreVideo 0x00007fff8240455b startIOThread(void*) + 139
4 libSystem.B.dylib 0x00007fff8248e8b6 _pthread_start + 331
5 libSystem.B.dylib 0x00007fff8248e769 thread_start + 13
Thread 6:
0 libSystem.B.dylib 0x00007fff8246f30a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8246f71c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 7:
0 libSystem.B.dylib 0x00007fff8246f30a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8246f71c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 8:
0 libSystem.B.dylib 0x00007fff8246f30a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8246f71c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 9: Dispatch queue: com.apple.root.default-priority
0 libSystem.B.dylib 0x00007fff82455796 semaphore_wait_trap + 10
1 libSystem.B.dylib 0x00007fff824919b5 _dispatch_semaphore_wait_slow + 211
2 libSystem.B.dylib 0x00007fff824917e9 _dispatch_barrier_sync_f_slow + 134
3 com.apple.dt.IDEFoundation 0x00000001005ffd82 -[IDEIndexableMainThreadProxy indexableFiles] + 132
4 com.apple.dt.IDEFoundation 0x0000000100555ca3 -[IDEIndex _purgeStaleData] + 471
5 com.apple.dt.IDEFoundation 0x00000001005553c3 __36-[IDEIndex _finishIndexingWorkspace]_block_invoke_0 + 198
6 com.apple.Foundation 0x00007fff8274b081 -[__NSOperationInternal start] + 681
7 com.apple.Foundation 0x00007fff8274ad37 ____startOperations_block_invoke_2 + 99
8 libSystem.B.dylib 0x00007fff82491610 _dispatch_call_block_and_release + 15
9 libSystem.B.dylib 0x00007fff8246fbb1 _dispatch_worker_thread2 + 239
10 libSystem.B.dylib 0x00007fff8246f4e8 _pthread_wqthread + 353
11 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 10:
0 libSystem.B.dylib 0x00007fff8246f30a __workq_kernreturn + 10
1 libSystem.B.dylib 0x00007fff8246f71c _pthread_wqthread + 917
2 libSystem.B.dylib 0x00007fff8246f385 start_wqthread + 13
Thread 11:
0 libSystem.B.dylib 0x00007fff8245575a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff82455dcd mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff85124452 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff851238df CFRunLoopRunSpecific + 575
4 com.apple.DebugSymbols 0x00007fff854939dc SpotlightQueryThread(void*) + 380
5 libSystem.B.dylib 0x00007fff8248e8b6 _pthread_start + 331
6 libSystem.B.dylib 0x00007fff8248e769 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff5fbffa08 rcx: 0x00007fff5fbff9a8 rdx: 0x0000000000000000
rdi: 0x00000000000034ce rsi: 0x0000000000000006 rbp: 0x00007fff5fbff9c0 rsp: 0x00007fff5fbff9a8
r8: 0x0000000000000000 r9: 0x000000011c9c44e0 r10: 0x00007fff8249f8ca r11: 0x0000000000000202
r12: 0x00007fff70509258 r13: 0x00000002062d89c0 r14: 0x0000000201f95260 r15: 0x00000001001505e0
rip: 0x00007fff824a3886 rfl: 0x0000000000000202 cr2: 0x0000000005ba9000
"Xcode crashes." ...and stop.
This is clearly a bug with Xcode. You don't have the source for Xcode and neither do we, so we can't debug the problem for you. Since it's clearly a crashing bug it's nothing you're doing wrong (so we can't tell you how to do it right). This means it's not a programming question, so it's off-topic for StackOverflow.
Please file bug reports with the respective software vendors for crashing bugs with your favorite IDE or developer utility. They're really the only ones who can help you (by fixing the crashing bug) but they can't fix it if they don't know about it. For Apple stuff, use http://bugreport.apple.com
I encountered this when I had some wrong values/type in the info.plist.
In particular I had a Icon file key pointing to an Array type which is wrong (should be a String type). If you have made any changes to the info.plist I suggest you can revert to the last saved version to troubleshoot further.
Hopefully this will help someone. I am getting the same error after turning off the dialog that warns you about already running instances when you click "run".
Basically, If I don't shut down previously running instances now by hitting "Stop", I get this error when trying to run.
Took me a while to figure out, but saved me from having to reinstall XCode.
Most often when I come across this issue there is an invalid file reference in my project. Typically references to file(s) in another Xcode project. If you go to the project browser, check for files that (in my case) show just a file icon, no file name. Delete those references, quit Xcode and restart it. Not sure what happens to cause this but this usually does the trick for me. Also, trying to edit the project.pbxproj file in the xcodeproj package contents causes more harm than good. Should be able to fix things to though.
It happened to me the other day when I moved the ipa I created for Testflight (beta testing). After I copied it back, it no longer gave me the error. So apparently moving any files in the project folder can cause this error.