iPhone app crashes with coreData error - iphone

The first version of our app is in app store. In order to internationalize the app, one minor change has been to the core data model used by the app, the change being - a new attribute added to one of the entities.
I made the change by adding a new versioning model to the core data and by setting the current Core DataModel to this new version created.
In order to do a lightweight migration, I have added the required options as well like so:
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,
[NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil];
NSError *error = nil;
__persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];
[__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error];
All this works fine when testing in the simulator and testing on the device ( when connected to MAC ). Once I made a ipa file and installed it on the device, the app crashes right when I start it. The default.png file shows up and then no other view is loaded.
The app crash log shows some issue with CoreData, but I am not able to put a finger and say this is what caused the problem. The crash log looks as below:
Last Exception Backtrace:
0 CoreFoundation 0x374f388f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x31568259 objc_exception_throw + 33
2 CoreData 0x324ee491 -[NSManagedObjectModel(_NSInternalMethods) _setIsEditable:] + 1
3 Company 0x000dfe7f 0xde000 + 7807
4 Company 0x000dfc91 0xde000 + 7313
5 Company 0x000ecb5b 0xde000 + 60251
6 Company 0x000ec8a3 0xde000 + 59555
7 Company 0x000ec82b 0xde000 + 59435
8 Company 0x000eb61d 0xde000 + 54813
9 UIKit 0x3080cd59 -[UIViewController awakeFromNib] + 113
10 UIKit 0x3089f207 -[UINib instantiateWithOwner:options:] + 1243
11 UIKit 0x308a0861 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 137
12 UIKit 0x307d6385 -[UIApplication _loadMainNibFileNamed:bundle:] + 37
13 UIKit 0x3065f6eb -[UIApplication _loadMainInterfaceFile] + 223
14 UIKit 0x3065972f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 235
15 UIKit 0x30627ac3 -[UIApplication handleEvent:withNewEvent:] + 1011
16 UIKit 0x30627567 -[UIApplication sendEvent:] + 55
17 UIKit 0x30626f3b _UIApplicationHandleEvent + 5827
18 GraphicsServices 0x3764322b PurpleEventCallback + 883
19 CoreFoundation 0x374c7523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
20 CoreFoundation 0x374c74c5 __CFRunLoopDoSource1 + 141
21 CoreFoundation 0x374c6313 __CFRunLoopRun + 1371
22 CoreFoundation 0x374494a5 CFRunLoopRunSpecific + 301
23 CoreFoundation 0x3744936d CFRunLoopRunInMode + 105
24 UIKit 0x3065886b -[UIApplication _run] + 551
25 UIKit 0x30655cd5 UIApplicationMain + 1081
26 Company 0x000df5df 0xde000 + 5599
27 Company 0x000df598 0xde000 + 5528
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3289832c __pthread_kill + 8
1 libsystem_c.dylib 0x34c0d208 pthread_kill + 48
2 libsystem_c.dylib 0x34c06298 abort + 88
3 libc++abi.dylib 0x3221bf64 abort_message + 40
4 libc++abi.dylib 0x32219346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x31568350 _objc_terminate + 140
6 libc++abi.dylib 0x322193be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3221944a std::terminate() + 14
8 libc++abi.dylib 0x3221a81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x315682a2 objc_exception_rethrow + 6
10 CoreFoundation 0x37449506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x37449366 CFRunLoopRunInMode + 98
12 UIKit 0x30658864 -[UIApplication _run] + 544
13 UIKit 0x30655cce UIApplicationMain + 1074
14 Company 0x000df5d8 0xde000 + 5592
15 Company 0x000df590 0xde000 + 5520
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x328883a8 kevent + 24
1 libdispatch.dylib 0x346a5f04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x346a5c22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x32898cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x34bc8f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x34bc8cc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x32898cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x34bc8f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x34bc8cc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x328980d8 __psynch_mutexwait + 24
1 libsystem_c.dylib 0x34bc2674 pthread_mutex_lock + 376
2 WebCore 0x336994e8 _ZL17_WebTryThreadLockb + 208
3 WebCore 0x336997ec _ZL14WebRunLoopLockP19__CFRunLoopObservermPv + 24
4 CoreFoundation 0x374c7b14 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
5 CoreFoundation 0x374c5d50 __CFRunLoopDoObservers + 252
6 CoreFoundation 0x374c616a __CFRunLoopRun + 946
7 CoreFoundation 0x3744949e CFRunLoopRunSpecific + 294
8 CoreFoundation 0x37449366 CFRunLoopRunInMode + 98
9 WebCore 0x3373cc9c _ZL12RunWebThreadPv + 396
10 libsystem_c.dylib 0x34bce72e _pthread_start + 314
11 libsystem_c.dylib 0x34bce5e8 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x32898cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x34bc8f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x34bc8cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f18dd98 r6: 0x00000002 r7: 0x2fedca68
r8: 0x0c641d30 r9: 0x00000000 r10: 0x0c63fd00 r11: 0x3fae9728
ip: 0x00000148 sp: 0x2fedca5c lr: 0x34c0d20f pc: 0x3289832c
cpsr: 0x000f0010
The line
"2 CoreData 0x324ee491 -[NSManagedObjectModel(_NSInternalMethods) _setIsEditable:] + 1"
indicates some problem with the core data but I do not know what nor what I need to do to fix this. Any idea?

I found the issue after much time spent.
The ipa file was being built using a build script and this was caused by a build error.
The built .ipa file did not include the second version of core data. So the app always crashed.

Related

App crashes on iPhone 5 with iOS 6

The resolution center rejected my app because, as they say, it crashes on iPhone 5 with iOS 6.1.2.
I have an iPhone 4 with iOS 6.1.2 and it doesnt crash. I can't solve that problem!
They also wrote that the app crash when:
Launch the app
Login with Facebook.
App crashes when the device returns to the app.
Here the simbolicated crash log:
Last Exception Backtrace:
0 CoreFoundation 0x344ec3e2 0x3442a000 + 795618
1 libobjc.A.dylib 0x3c1dd95e 0x3c1d5000 + 35166
2 CoreFoundation 0x344eff2c 0x3442a000 + 810796
3 CoreFoundation 0x344ee648 0x3442a000 + 804424
4 CoreFoundation 0x34446204 0x3442a000 + 115204
5 Kick - Serie A 0x0007252c -[LetturaScrittura writeStringToFile:] (LetturaScrittura.m:26)
6 Kick - Serie A 0x0006e9da __25-[Profilo carica_profilo]_block_invoke (Profilo.m:314)
7 Kick - Serie A 0x0007e14a -[FBRequestConnection completeWithResults:orError:] (FBRequestConnection.m:1200)
8 Kick - Serie A 0x0007d56c -[FBRequestConnection completeWithResponse:data:orError:] (FBRequestConnection.m:983)
9 Kick - Serie A 0x0007b6aa __68-[FBRequestConnection startWithCacheIdentity:skipRoundtripIfCached:]_block_invoke_0 (FBRequestConnection.m:499)
10 Kick - Serie A 0x0007f38e -[FBURLConnection invokeHandler:error:response:responseData:] (FBURLConnection.m:163)
11 Kick - Serie A 0x0007f8f4 -[FBURLConnection connectionDidFinishLoading:] (FBURLConnection.m:233)
12 Foundation 0x34e28910 0x34d53000 + 874768
13 Foundation 0x34d68764 0x34d53000 + 87908
14 Foundation 0x34d68680 0x34d53000 + 87680
15 CFNetwork 0x341c964a 0x34141000 + 558666
16 CFNetwork 0x341c8d2e 0x34141000 + 556334
17 CFNetwork 0x341f100e 0x34141000 + 720910
18 CoreFoundation 0x34432ac8 0x3442a000 + 35528
19 CFNetwork 0x341f146e 0x34141000 + 722030
20 CFNetwork 0x3415545c 0x34141000 + 83036
21 CoreFoundation 0x344c18f2 0x3442a000 + 620786
22 CoreFoundation 0x344c1158 0x3442a000 + 618840
23 CoreFoundation 0x344bff2a 0x3442a000 + 614186
24 CoreFoundation 0x34433238 0x3442a000 + 37432
25 CoreFoundation 0x344330c4 0x3442a000 + 37060
26 GraphicsServices 0x38011336 0x3800c000 + 21302
27 UIKit 0x3634f2b4 0x362f8000 + 357044
28 Kick - Serie A 0x0006ac92 main (main.m:16)
29 libdyld.dylib 0x3c60ab1c 0x3c609000 + 6940
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3c6d1350 __pthread_kill + 8
1 libsystem_c.dylib 0x3c647fb2 pthread_kill + 54
2 libsystem_c.dylib 0x3c684366 abort + 90
3 libc++abi.dylib 0x3bc2cdda abort_message + 70
4 libc++abi.dylib 0x3bc2a094 default_terminate() + 20
5 libobjc.A.dylib 0x3c1dda58 _objc_terminate() + 144
6 libc++abi.dylib 0x3bc2a118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x3bc2a1b0 std::terminate() + 16
8 libc++abi.dylib 0x3bc2b626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3c1dd9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x3443329c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
12 GraphicsServices 0x38011336 GSEventRunModal + 70
13 UIKit 0x3634f2b4 UIApplicationMain + 1116
14 Kick - Serie A 0x0006ac92 main (main.m:16)
15 libdyld.dylib 0x3c60ab1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3c6c15d0 kevent64 + 24
1 libdispatch.dylib 0x3c5fcd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3c5f8374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a432390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
8 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 Foundation 0x34d80888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x34e0422c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
9 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3c6d1594 __select + 20
1 CoreFoundation 0x344c5474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
3 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3e191524
r4: 0x00000006 r5: 0x3e191b78 r6: 0x1dd85ca4 r7: 0x2fd979f4
r8: 0x1dd85c80 r9: 0x00000300 r10: 0x00000000 r11: 0x3455b022
ip: 0x00000148 sp: 0x2fd979e8 lr: 0x3c647fb7 pc: 0x3c6d1350
cpsr: 0x00000010
Here's the LetturaScrittore method that makes the app crash (I use it to write on a .txt the email of the facebook user):
- (void)writeStringToFile:(NSString*)aString {
// Build the path, and create if needed.
NSString* filePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* fileName = #"myTextFile.txt";
NSString* fileAtPath = [filePath stringByAppendingPathComponent:fileName];
if (![[NSFileManager defaultManager] fileExistsAtPath:fileAtPath]) {
[[NSFileManager defaultManager] createFileAtPath:fileAtPath contents:nil attributes:nil];
}
// The main act.
[[aString dataUsingEncoding:NSUTF8StringEncoding] writeToFile:fileAtPath atomically:YES];
}
The reason for the crash is that you don't actually pass a NSString object to writeStringToFile.
My mistake was on the facebook auth login: without the permission of the email, facebook return nothing, and the app crashes when trying to write the .txt file.

Stucking on crashs on device?

I've a question within my App and I don't know how to fix this, because it's the first time of developing IOS Apps for me. The App works fine on Simulator and my Iphone 3gs. But on my Ipod touch it won't work.
So my crash log shows me something like this:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x312f488f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37632259 objc_exception_throw + 33
2 CoreFoundation 0x312f7a9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x312f6915 ___forwarding___ + 301
4 CoreFoundation 0x31251650 _CF_forwarding_prep_0 + 48
5 CoreFoundation 0x3124e3fd -[NSObject performSelector:withObject:withObject:] + 53
6 UIKit 0x3099ae07 -[UIApplication sendAction:to:from:forEvent:] + 63
7 UIKit 0x3099adc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
8 UIKit 0x3099ada1 -[UIControl sendAction:to:forEvent:] + 45
9 UIKit 0x3099ab11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
10 UIKit 0x3099b449 -[UIControl touchesEnded:withEvent:] + 477
11 UIKit 0x3099992b -[UIWindow _sendTouchesForEvent:] + 319
12 UIKit 0x30999319 -[UIWindow sendEvent:] + 381
13 UIKit 0x3097f695 -[UIApplication sendEvent:] + 357
14 UIKit 0x3097ef3b _UIApplicationHandleEvent + 5827
15 GraphicsServices 0x332c522b PurpleEventCallback + 883
16 CoreFoundation 0x312c8523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
17 CoreFoundation 0x312c84c5 __CFRunLoopDoSource1 + 141
18 CoreFoundation 0x312c7313 __CFRunLoopRun + 1371
19 CoreFoundation 0x3124a4a5 CFRunLoopRunSpecific + 301
20 CoreFoundation 0x3124a36d CFRunLoopRunInMode + 105
21 GraphicsServices 0x332c4439 GSEventRunModal + 137
22 UIKit 0x309adcd5 UIApplicationMain + 1081
23 My App 0x00097045 0x95000 + 8261
24 My App 0x00096078 0x95000 + 4216
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x37f0e32c __pthread_kill + 8
1 libsystem_c.dylib 0x353d9208 pthread_kill + 48
2 libsystem_c.dylib 0x353d2298 abort + 88
3 libc++abi.dylib 0x373a1f64 abort_message + 40
4 libc++abi.dylib 0x3739f346 default_terminate() + 18
5 libobjc.A.dylib 0x37632350 _objc_terminate + 140
6 libc++abi.dylib 0x3739f3be safe_handler_caller(void (*)()) + 70
7 libc++abi.dylib 0x3739f44a std::terminate() + 14
8 libc++abi.dylib 0x373a081e __cxa_rethrow + 82
9 libobjc.A.dylib 0x376322a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3124a506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x332c4432 GSEventRunModal + 130
13 UIKit 0x309adcce UIApplicationMain + 1074
14 My App 0x0009703e 0x95000 + 8254
15 My App 0x00096070 0x95000 + 4208
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x37efe3a8 kevent + 24
1 libdispatch.dylib 0x35b18ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b18bc2 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x37efe004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37efe1fa mach_msg + 50
2 CoreFoundation 0x312c83ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x312c7124 __CFRunLoopRun + 876
4 CoreFoundation 0x3124a49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
6 WebCore 0x363eec9c RunWebThread(void*) + 396
7 libsystem_c.dylib 0x3539a72e _pthread_start + 314
8 libsystem_c.dylib 0x3539a5e8 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f22bd98 r6: 0x00000002 r7: 0x2fe93a08
r8: 0x0012eac0 r9: 0x373a2a4a r10: 0x00000000 r11: 0x0e031d60
ip: 0x00000148 sp: 0x2fe939fc lr: 0x353d920f pc: 0x37f0e32c
cpsr: 0x000f0010
And another thing is that some views are loading slowly and it mostly crashes on my Ipod touch 4g (on 3gs it works fine, 4 I don't know, 4s I don't know, 5 I don't know).
Sometimes it shows me on my crash logs the name of my app like this ^, and sometimes it shows me Process:Unknown Type:Unknown. Any suggestions what to do?
And in the Unknown one there's not a crash log it doesnt look like.
Your errors seems to have to deal with device compatibility and some people are facing the same errors like you. Take a look at this https://discussions.apple.com/thread/4317775?start=0&tstart=0

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.

Application crash on device but works fine on iphone simulator

My app worked fine on my device but I have added features and when I test on my device (iphone 4 iOs 4.2.1), it crashes just on launching; But it works fine on simulator.
I have looked for an answer to my question on the web and this forum but I don't find...
Here is the crash report :
Incident Identifier: 7204BFE3-E826-438E-8B3E-78301DE6AA99
CrashReporter Key: 06d77d7d3219de2a9a56c2fa0510b92310e5da62
Hardware Model: iPhone3,1
Process: ColorMixer [1074]
Path: /var/mobile/Applications/AD6EC67E-FCBE-4D02-8EE3-06153233CA2E/ColorMixer.app/ColorMixer
Identifier: ColorMixer
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: punchd [1]
Date/Time: 2011-05-20 00:02:28.738 +0200
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x33bd52d4 __kill + 8
1 libSystem.B.dylib 0x33bd52c4 kill + 4
2 libSystem.B.dylib 0x33bd52b6 raise + 10
3 libSystem.B.dylib 0x33be9d72 abort + 50
4 libstdc++.6.dylib 0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376
5 libobjc.A.dylib 0x3347c594 _objc_terminate + 104
6 libstdc++.6.dylib 0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46
7 libstdc++.6.dylib 0x31bd9e46 std::terminate() + 10
8 libstdc++.6.dylib 0x31bd9f16 __cxa_throw + 78
9 libobjc.A.dylib 0x3347b4c4 objc_exception_throw + 64
10 CoreFoundation 0x33ac07c2 +[NSException raise:format:arguments:] + 62
11 CoreFoundation 0x33ac07fc +[NSException raise:format:] + 28
12 UIKit 0x3224b77c -[UINib instantiateWithOwner:options:] + 1104
13 UIKit 0x3224cb32 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86
14 UIKit 0x3209e86a -[UIApplication _loadMainNibFile] + 90
15 Backgrounder.dylib 0x00090b4c 0x8f000 + 6988
16 UIKit 0x3209a1f6 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 174
17 UIKit 0x32066484 -[UIApplication handleEvent:withNewEvent:] + 1108
18 UIKit 0x32065ec2 -[UIApplication sendEvent:] + 38
19 UIKit 0x32065900 _UIApplicationHandleEvent + 5084
20 GraphicsServices 0x33b0eefc PurpleEventCallback + 660
21 CoreFoundation 0x33a556f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
22 CoreFoundation 0x33a556bc __CFRunLoopDoSource1 + 160
23 CoreFoundation 0x33a47f76 __CFRunLoopRun + 514
24 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
25 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
26 UIKit 0x32099302 -[UIApplication _run] + 374
27 UIKit 0x32096e8c UIApplicationMain + 664
28 ColorMixer 0x00002c70 main (main.m:23)
29 ColorMixer 0x00002c18 start + 32
Thread 1:
0 libSystem.B.dylib 0x33b89974 kevent + 24
1 libSystem.B.dylib 0x33c33704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x33c33174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x33c32b98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x33bd724a _pthread_wqthread + 258
5 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x33bd79e0 __workq_kernreturn + 8
1 libSystem.B.dylib 0x33bd7364 _pthread_wqthread + 540
2 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 3:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 WebCore 0x304df124 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
8 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3eaf12e8
r4: 0x00000006 r5: 0x31bd9989 r6: 0x001667ac r7: 0x2fdfe024
r8: 0x3ea4f538 r9: 0x00000065 r10: 0x0015c6b0 r11: 0x00000001
ip: 0x00000025 sp: 0x2fdfe024 lr: 0x33bd52cb pc: 0x33bd52d4
cpsr: 0x00080010
I don't know what I have to do, I don't see references to my code...
Thanks for future help.
See this post to add NSZombieEnabled, that will provide you more infos on the crash.
App crash only on iPhone Device and not in Simulator

App Store build crashes, doesn't on testing on Sim or my own device

I have just released an update for my app to the app store. I tested it within the simulater and my own devices and never had an issue. I have since discovered that the updated version crashes, but only on the iPad and only from the app store
The update has made the app universal.
Any help would be great, i dont wanna effect my reting.
Crash Log below
Incident Identifier: 36D64A4B-25EF-4352-BEFC-DF4409B48048
CrashReporter Key: ca77f364943901ada3da44974f547565326b5b64
Hardware Model: iPad1,1
Process: FuelCost [2659]
Path: /var/mobile/Applications/4A738AC7-C717-46C2-9469-9B8888B6FE10/FuelCost.app/FuelCost
Identifier: FuelCost
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-05-14 16:20:31.338 +0100
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x360ffa1c __pthread_kill + 8
1 libsystem_c.dylib 0x33e093b4 pthread_kill + 52
2 libsystem_c.dylib 0x33e01bf8 abort + 72
3 libstdc++.6.dylib 0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x33b2806c _objc_terminate + 104
5 libstdc++.6.dylib 0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x363fae8a std::terminate() + 10
7 libstdc++.6.dylib 0x363faf5a __cxa_throw + 78
8 libobjc.A.dylib 0x33b26c84 objc_exception_throw + 64
9 CoreFoundation 0x303c548a +[NSException raise:format:arguments:] + 62
10 CoreFoundation 0x303c54c4 +[NSException raise:format:] + 28
11 UIKit 0x35aa2a4c -[UINib instantiateWithOwner:options:] + 1104
12 UIKit 0x35aa3e02 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86
13 UIKit 0x358ce4c6 -[UIApplication _loadMainNibFile] + 90
14 UIKit 0x358c8b02 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 174
15 UIKit 0x3589d7d0 -[UIApplication handleEvent:withNewEvent:] + 1108
16 UIKit 0x3589d20e -[UIApplication sendEvent:] + 38
17 UIKit 0x3589cc4c _UIApplicationHandleEvent + 5084
18 GraphicsServices 0x35571e70 PurpleEventCallback + 660
19 CoreFoundation 0x3039ca90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
20 CoreFoundation 0x3039e838 __CFRunLoopDoSource1 + 160
21 CoreFoundation 0x3039f606 __CFRunLoopRun + 514
22 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
23 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
24 UIKit 0x358c7d42 -[UIApplication _run] + 366
25 UIKit 0x358c5800 UIApplicationMain + 664
26 FuelCost 0x000022ee main (main.m:14)
27 FuelCost 0x000022b8 0x1000 + 4792
Thread 1:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3e8a148c r5: 0x00000006 r6: 0x0015bb5c r7: 0x2fdfe068
r8: 0x3f039964 r9: 0x00000065 r10: 0x0014ec40 r11: 0x00000001
ip: 0x00000148 sp: 0x2fdfe05c lr: 0x32d8f3bb pc: 0x32ae2a1c
cpsr: 0x00000010
Binary Images:
There are many things to check here
Make sure that all of your files are included in the target, specifically the Nib files.
Check to make sure you have nibs included for the iPad.
You left out the Binary Images section of the report, but check to make sure these crashing devices aren't jail-broken.
Finally, if you are going to support iPad, I would highly recommend getting a physical one to test on. You could have avoided this otherwise.