Apple rejected app because of crash I cannot reproduce [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
My app was rejected because of a crash on iPad, but I am unable to reproduce it. What should I do?
We found that your app crashed on iPad running iOS 7.0.4, which is
not in compliance with the App Store Review Guidelines.
Your app crashed when we launch the app.
This occurred when your app was used:
On Wi-Fi
We have attached detailed crash logs to help troubleshoot this issue. For information on how to symbolicate and read a crash log,
please see Tech Note TN2151 Understanding and Analyzing iPhone OS
Application Crash Reports.
If you have difficulty reproducing this issue, please try testing the workflow as described in Testing Workflow with Xcode's
Archive feature.
For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any
symbolicated crash logs, screenshots, or steps to reproduce the issues
for when the DTS engineer follows up.
2.10
Also, we found that your app crashed on iPad, which doesn't meet the requirements for running on iPad, as required by the App Store
Review Guidelines.
This is the Crash Report.
Incident Identifier: BE08340B-BD3C-4834-A4B8-DEE44FDB8CF9
CrashReporter Key: c9a77ef4dcc63290176c21a5175ca5807a28eca5
Hardware Model: xxx
Process: Lottery [670]
Path: /var/mobile/Applications/470EA3B5-E92D-48AB-8DAD-66B4FB6F3950/Lottery.app/Lottery
Identifier: CaiwangClient
Version: 1.0.0 (1.0.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-01-26 09:14:30.717 -0800
OS Version: iOS 7.0.4 (11B554a)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x2d9bee83 0x381656c7 0x2d9beb89 0x2e37ae3f 0x2e2e0139 0xd5b3d 0xd52c9 0xca485 0x2e3a2e4b 0x2d989f1f 0x2d9893e7 0x2d987bd7 0x2d8f2471 0x2d8f2253 0x326002eb 0x301a7845 0xdf37f 0x3865eab7)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x387151fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3877ca4f pthread_kill + 55
2 libsystem_c.dylib 0x386c6029 abort + 73
3 libc++abi.dylib 0x37b1498b abort_message + 71
4 libc++abi.dylib 0x37b2d6e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x38165937 _objc_terminate() + 191
6 libc++abi.dylib 0x37b2b1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x37b2ad13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3816580b objc_exception_rethrow + 39
9 CoreFoundation 0x2d8f24e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
11 GraphicsServices 0x326002e7 GSEventRunModal + 135
12 UIKit 0x301a7841 UIApplicationMain + 1133
13 Lottery 0x000df37b 0x98000 + 291707
14 libdyld.dylib 0x3865eab5 start + 1
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x38702838 kevent64 + 24
1 libdispatch.dylib 0x386510d1 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x3864b61f _dispatch_mgr_thread + 35
Thread 2:
0 libsystem_kernel.dylib 0x38715c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38779e07 _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Lottery 0x000d312f 0x98000 + 241967
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Foundation 0x2e32d4bd +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 5 name: Dispatch queue: com.apple.root.default-priority
Thread 5:
0 libsystem_kernel.dylib 0x38702ad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x3864fde1 _dispatch_semaphore_wait_slow + 173
2 libxpc.dylib 0x3878a0d7 xpc_connection_send_message_with_reply_sync + 151
3 SystemConfiguration 0x3011d35b _reach_server_target_remove + 91
4 SystemConfiguration 0x3011d2cb __SCNetworkReachabilityServer_targetRemove + 39
5 SystemConfiguration 0x30104311 __SCNetworkReachabilityDeallocate + 93
6 CoreFoundation 0x2d8eee2d CFRelease + 465
7 libdispatch.dylib 0x3864f7d5 _dispatch_root_queue_drain + 221
8 libdispatch.dylib 0x3864f9c1 _dispatch_worker_thread2 + 53
9 libsystem_pthread.dylib 0x38779dfd _pthread_wqthread + 297
10 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 6 name: com.apple.CFSocket.private
Thread 6:
0 libsystem_kernel.dylib 0x38715440 __select + 20
1 CoreFoundation 0x2d98d457 __CFSocketManager + 483
2 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
3 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
4 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3a2e618c r6: 0x00000000 r7: 0x27d6b594
r8: 0x14d6f380 r9: 0x00000001 r10: 0x00000000 r11: 0x001058cc
ip: 0x00000148 sp: 0x27d6b588 lr: 0x3877ca53 pc: 0x387151fc
cpsr: 0x00000010

Related

Unable to understand Apple Crash Log with -[NSObject(NSObject) doesNotRecognizeSelector:]

This is very weird, I can run my app in a simulator, iPhone 4S and iPhone 5 using Xcode 5 (5A1413) without any problems but when I submitted the app to iTunes store was rejected and this log was provided from Apple.
This is the message I got from Apple:
We found that your app crashed on iPhone 5s running iOS 7.0.2, which is not in compliance with the App Store Review Guidelines.
I confess I am clueless, can you please help me to understand this crash log:
Incident Identifier: 17461001-CE5D-451F-9BD5-FF513B76B03E
CrashReporter Key: 298a52ed29ad5cd48b1f745f998491771bd584a6
Hardware Model: iPhone5,1
Process: HomeClubBanesco [485]
Path: /var/mobile/Applications/6C36584D-E12D-4BDB-995A-B1652CDA9E48/HomeClubBanesco.app/HomeClubBanesco
Identifier: com.3pixelsmedia.HomeClubBanesco
Version: 2 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-10 23:21:28.291 -0430
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x31462e86 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3b75d6c2 objc_exception_throw + 34
2 CoreFoundation 0x314667b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x314650b2 ___forwarding___ + 702
4 CoreFoundation 0x313b3e94 __forwarding_prep_0___ + 20
5 Foundation 0x31e05e78 -[_NSPlaceholderData initWithData:] + 124
6 HomeClubBanesco 0x00106b76 -[HCBAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] (HCBAppDelegate.m:315)
7 UIKit 0x33efe45a _UIXXRemoteNotificationRegistrationSucceeded + 146
8 UIKit 0x33efefc4 _XRemoteNotificationRegistrationSucceeded + 88
9 AppSupport 0x34c73b32 migHelperRecievePortCallout + 186
10 CoreFoundation 0x3142d77a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
11 CoreFoundation 0x3142d716 __CFRunLoopDoSource1 + 342
12 CoreFoundation 0x3142bee2 __CFRunLoopRun + 1402
13 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
14 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
15 GraphicsServices 0x360cd2e6 GSEventRunModal + 134
16 UIKit 0x33c4d1e0 UIApplicationMain + 1132
17 HomeClubBanesco 0x00105812 main (main.m:17)
18 libdyld.dylib 0x3bc56ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3bd0d1fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3bd74a4e pthread_kill + 54
2 libsystem_c.dylib 0x3bcbe028 abort + 72
3 libc++abi.dylib 0x3b10c98a abort_message + 70
4 libc++abi.dylib 0x3b1256e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3b75d936 _objc_terminate() + 190
6 libc++abi.dylib 0x3b1231b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3b122d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3b75d80a objc_exception_rethrow + 38
9 CoreFoundation 0x313965b2 CFRunLoopRunSpecific + 638
10 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
11 GraphicsServices 0x360cd2e6 GSEventRunModal + 134
12 UIKit 0x33c4d1e0 UIApplicationMain + 1132
13 HomeClubBanesco 0x00105812 main (main.m:17)
14 libdyld.dylib 0x3bc56ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3bcfa838 kevent64 + 24
1 libdispatch.dylib 0x3bc490d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3bc4363e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3bcfaa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bcfa87c mach_msg + 36
2 CoreFoundation 0x3142d55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x3142bc7c __CFRunLoopRun + 788
4 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x313da1a6 CFRunLoopRun + 94
6 CoreMotion 0x31a4e394 ___lldb_unnamed_function1407$$CoreMotion + 724
7 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
9 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x3bcfaa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bcfa87c mach_msg + 36
2 CoreFoundation 0x3142d55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x3142bc7c __CFRunLoopRun + 788
4 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
6 Foundation 0x31dd164c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x31e46dc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
10 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x3bd0d440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x3143145e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
4 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3db3a18c r6: 0x00000000 r7: 0x27d03584
r8: 0x15e958a0 r9: 0x00000001 r10: 0x31f15124 r11: 0x00000000
ip: 0x00000148 sp: 0x27d03578 lr: 0x3bd74a53 pc: 0x3bd0d1fc
cpsr: 0x00000010
Updated to show the broken method
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(#"Usuario SI Acepto las notificaciones");
[self setDToken:deviceToken];
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:HCBDeviceTokenPrefKey]];
if (![myToken isEqualToData:deviceToken]) {
NSLog(#"Token no coincide");
[[NSUserDefaults standardUserDefaults] setObject:deviceToken forKey:HCBDeviceTokenPrefKey];
// Debo actualizar los datos en la db.
if (![[[NSUserDefaults standardUserDefaults] objectForKey:HCBUserIDPrefKey] isEqualToString:#"1"]) {
NSString *urlString = [NSString stringWithFormat:#"http://cmx.3pixelsmedia.com/homeclub/?l=iphone&updateDeviceID&deviceToken=%#&userID=%#",
deviceToken,
[[NSUserDefaults standardUserDefaults] objectForKey:HCBUserIDPrefKey]];
NSLog(#"urlString : %#",urlString);
}
}
NSLog(#"Device Token : %#",myToken);
}
During app review, your app received a EXC_CRASH (SIGABRT) exception. That means the code running in your app detected a fault and so it asked the Operating System to terminate your process, which is does via a SIGABRT signal.
The origin of the abort was that the Objective-C runtime detected a doesNotRecognizeSelector problem when dispatching a method request, as seen in the exception backtrace
2 CoreFoundation 0x314667b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
The code that gave rise to this is:
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:HCBDeviceTokenPrefKey]];
That is because NSData will assume the user defaults has NSData result for the device token.
If it does not get an appropriate NSData object it will send an -[_NSPlaceholderData initWithData:] constructor message to an object that does not know about this private implementation class for NSData
Just to double-check the following test code proves this experimentally:
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:#"SomeKey"]];
NSLog(#"My data is %# - ok since we can handle a nil", myToken);
id stringProperty = #"Some string";
NSData *problemToken = [[NSData alloc] initWithData:stringProperty];
NSLog(#"My data is %# - we have probably crashed by now", problemToken);
Taking a step back, it is important to understand crashes can often occur not due to your code itself, but instead the environment your code is running in.
Two factors are different between your working and failing case.
Your app locally may have from a prior run setup its user defaults with a NSData token.
Your app local testing may be using a Debug version which has been configured (in terms of defaults) differently from your Release version (which will have been sent to Apple).
Things to try:
In simulator, erase contents and settings and re-try your app.
In Xcode (Schema settings) change your deployment version from Debug to Release.
Put in code which tests the type of the value come from User Defaults for key HCBUserIDPrefKey. Ensure that it is NSData (also check for nil).

Iphone App crashes on AD HOC

my app runs fine on development mode, but for some reason on ad hoc i get a crash right after loading screen.
I really can't understand what could be wrong, any tips on how to test it better?
Apple rejected it with this message:
We found that your app failed to launch on an iPhone 5 and iPad 3rd gen running iOS 6.1.3, on both Wi-Fi and cellular networks.
We encountered the issue when selecting the application on the Home screen - the app displayed a launch image then quit unexpectedly. This may be because iOS 6 uses a watchdog timer for applications; if an application takes too long to complete its initial startup, the operating system terminates the application.
For information about the watchdog timer, please see Technical Q&A: Application does not crash when launched from debugger but crashes when launched by user..
Another possibility could be a missing entitlement. For more information, please see the Technical Note: Resolving "0x800003A", applications not launching and "missing entitlement".For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to:
include the complete details of your rejection issues
prepare any symbolicated crash logs, screenshots, and steps to reproduce the issues for when the DTS engineer follows up.
For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.
If you have difficulty reproducing this issue, please try testing the workflow as described in https://developer.apple.com/library/ios/qa/qa1764/Testing Workflow with Xcode's Archive feature".
log:
Incident Identifier: 594EE41B-0B8D-419A-B9B8-84CB58D1C174
CrashReporter Key: bb741ef3c315eb6c114b0de36494c7de51511d89
Hardware Model: iPhone5,2
Process: tictactoe [85964]
Path: /var/mobile/Applications/F042F618-9077-4862-8938-ABADDC05E8B1/tictactoe.app/tictactoe
Identifier: tictactoe
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-04-17 11:11:02.661 +0100
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: EXC_ARM_DA_ALIGN at 0x20b8f671
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 tictactoe 0x00073708 -[CCBReader readFloat] (CCBReader.m:201)
1 tictactoe 0x00075972 -[CCBReader readSequences] (CCBReader.m:959)
2 tictactoe 0x00075bf8 -[CCBReader readFileWithCleanUp:actionManagers:] (CCBReader.m:1020)
3 tictactoe 0x00075e9c +[CCBReader nodeGraphFromData:owner:parentSize:] (CCBReader.m:1061)
4 tictactoe 0x0007605e +[CCBReader nodeGraphFromFile:owner:parentSize:] (CCBReader.m:1090)
5 tictactoe 0x00076122 +[CCBReader sceneWithNodeGraphFromFile:owner:parentSize:] (CCBReader.m:1105)
6 tictactoe 0x000760f2 +[CCBReader sceneWithNodeGraphFromFile:owner:] (CCBReader.m:1100)
7 tictactoe 0x000711f8 -[AppController application:didFinishLaunchingWithOptions:] (AppDelegate.m:85)
8 UIKit 0x34957a9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
9 UIKit 0x34957620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
10 UIKit 0x3494f82e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
11 UIKit 0x348f7d1a -[UIApplication handleEvent:withNewEvent:] + 1006
12 UIKit 0x348f77a8 -[UIApplication sendEvent:] + 68
13 UIKit 0x348f71ea _UIApplicationHandleEvent + 6194
14 GraphicsServices 0x3660e5f4 _PurpleEventCallback + 588
15 GraphicsServices 0x3660e222 PurpleEventCallback + 30
16 CoreFoundation 0x32abd3e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
17 CoreFoundation 0x32abd386 __CFRunLoopDoSource1 + 134
18 CoreFoundation 0x32abc20a __CFRunLoopRun + 1378
19 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
20 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
21 UIKit 0x3494e468 -[UIApplication _run] + 664
22 UIKit 0x3494b2b4 UIApplicationMain + 1116
23 tictactoe 0x00070e1a main (main.m:14)
24 libdyld.dylib 0x3ac06b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3acbd5d0 kevent64 + 24
1 libdispatch.dylib 0x3abf8d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3abf4374 _dispatch_mgr_thread + 32
Thread 2:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3acbce30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3acbcfd0 mach_msg + 48
2 CoreFoundation 0x32abd2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x32abc02c __CFRunLoopRun + 900
4 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
6 WebCore 0x38a2e390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3ac260de _pthread_start + 306
8 libsystem_c.dylib 0x3ac25fa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3acbce30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3acbcfd0 mach_msg + 48
2 CoreFoundation 0x32abd2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x32abc02c __CFRunLoopRun + 900
4 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
6 Foundation 0x3337c888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x3340022c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3ac260de _pthread_start + 306
9 libsystem_c.dylib 0x3ac25fa4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x0000000c r1: 0x00000275 r2: 0x20b8f671 r3: 0x00000271
r4: 0x1f570000 r5: 0x000eafc5 r6: 0x00000001 r7: 0x2fddd618
r8: 0x3859ca59 r9: 0x00000003 r10: 0x3859cbdc r11: 0x1f579bb0
ip: 0x00073495 sp: 0x2fddd614 lr: 0x000736e5 pc: 0x00073708
cpsr: 0x00000030
.......

Accepted AppStore app crash on every device

Just released this morning an app that I tested on all possible devices and simulators, but when I downloaded it from the store the application crashes at startup. I have tested it on many devices and iOS versions, but the result is the same:
Incident Identifier: B34024C9-9F00-4E57-B3AB-068CFFC55119
CrashReporter Key: 81ac2324b459bfeeb1a13c007d9d04e59e6efaf2
Hardware Model: iPhone4,1
Process: iMatematica [9546]
Path: /var/mobile/Applications/CFFA51F9-52F9-4555-8C5B-1B2DDF5E2D5B/iMatematica.app/iMatematica
Identifier: iMatematica
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-04 07:24:08.703 +0200
OS Version: iPhone OS 5.1.1 (9B206)
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 0x35eb532c __pthread_kill + 8
1 libsystem_c.dylib 0x32a01208 pthread_kill + 48
2 libsystem_c.dylib 0x329fa298 abort + 88
3 iMatematica 0x0007eee0 0x1000 + 515808
4 CoreFoundation 0x355ff950 __handleUncaughtException + 68
5 libobjc.A.dylib 0x379a633e _objc_terminate + 122
6 libc++abi.dylib 0x359b53be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x359b544a std::terminate() + 14
8 libc++abi.dylib 0x359b681e __cxa_rethrow + 82
9 libobjc.A.dylib 0x379a62a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35555506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
12 UIKit 0x33064864 -[UIApplication _run] + 544
13 UIKit 0x33061cce UIApplicationMain + 1074
14 iMatematica 0x00009a88 main (main.m:18)
15 iMatematica 0x000039b0 0x1000 + 10672
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x35ea53a8 kevent + 24
1 libdispatch.dylib 0x3448ff04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3448fc22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 WebCore 0x31454c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x329c272e _pthread_start + 314
8 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 Foundation 0x3508ebb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3508ea7a -[NSThread main] + 66
8 Foundation 0x3512258a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x329c272e _pthread_start + 314
10 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ec0cd98 r6: 0x00000002 r7: 0x2fdff9c0
r8: 0x3f02bce0 r9: 0x00000000 r10: 0x0021f0a0 r11: 0x33410c0d
ip: 0x00000148 sp: 0x2fdff9b4 lr: 0x32a0120f pc: 0x35eb532c
cpsr: 0x00000010
The problem is only happening to me or is the same as last month: that is a problem of apple server that sign apps?
I solved the problem: changing the language from Italian (my native language) to English, the application works properly. This explains why the AppReview Team has not noticed the crash, and was due to a missing localization in a xib file: "Could not load NIB bundle: 'NSBundle (loaded)' with name 'MasterViewController'"

My app is being tested on iPad although it's developed for iPhone

My app was rejected but I don't know what's the exact problem.
Rejected reason is:
We found that your app crashed on iPad 3rd Gen. running iOS 5.1.1,
which is not in compliance with the App Store Review Guidelines.
Your app crashed on both Wi-Fi and cellular networks when we select an
item from the table view.
However I submitted my application for iPhones only. On top of that I couldn't figure out what's wrong in the crash files and could not debug as I tested it on my iPhone and I didn't have any bugs or crashes.
Any help or tip will be extremely appreciated as I feel totally lost in this one. Million thanks in advance.
You can find the crash reports below..
Incident Identifier: 5E4A2B4C-EC76-441B-82A2-3782F53B533B
CrashReporter Key: 5ee8aa21dffe8c0b7f3386a5290b271457c404c8
Hardware Model: iPad3,3
Process: *****
Path: *****
Identifier: *****
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-04 18:44:59.930 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'Application tried to present a nil modal view controller on target <ViewController:
0x176f80>.'
*** First throw call stack:
(0x3309e88f 0x35043259 0x35687441 00x356e26a7 0x84d9f 0x3565793d 0x356d1627 0x3777d933
0x33072a33 0x33072699 0x3307126f 0x32ff44a5 0x32ff436d 0x33141439 0x355d3cd5 0x83f03
0x83ec4)
Last Exception Backtrace:
(0x3309e88f 0x35043259 0x35687441 0x356e26a7 0x84d9f 0x3565793d 0x356d1627 0x3777d933
0x33072a33 0x33072699 0x3307126f 0x32ff44a5 0x32ff436d 0x33141439 0x355d3cd5 0x83f03
0x83ec4)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3557532c __pthread_kill + 8
1 libsystem_c.dylib 0x3249b208 pthread_kill + 48
2 libsystem_c.dylib 0x32494298 abort + 88
3 libc++abi.dylib 0x34219f64 abort_message + 40
4 libc++abi.dylib 0x34217346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x35043350 _objc_terminate + 140
6 libc++abi.dylib 0x342173be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3421744a std::terminate() + 14
8 libc++abi.dylib 0x3421881e __cxa_rethrow + 82
9 libobjc.A.dylib 0x350432a2 objc_exception_rethrow + 6
10 CoreFoundation 0x32ff4506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x32ff4366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x33141432 GSEventRunModal + 130
13 UIKit 0x355d3cce UIApplicationMain + 1074
14 ****** 0x00083efc 0x82000 + 7932
15 ****** 0x00083ebc 0x82000 + 7868
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x355653a8 kevent + 24
1 libdispatch.dylib 0x317c9f04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x317c9c22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x35565004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x355651fa mach_msg + 50
2 CoreFoundation 0x330723ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x33071124 __CFRunLoopRun + 876
4 CoreFoundation 0x32ff449e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32ff4366 CFRunLoopRunInMode + 98
6 WebCore 0x35d92c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x3245c72e _pthread_start + 314
8 libsystem_c.dylib 0x3245c5e8 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 6:
0 AddressBook 0x338c7cc8 ABAddressBookCreate + 0
1 TextInput 0x345d11be
KB::fill_with_matchable_strings_from_address_book(KB::Hashmap<KB::String, bool>&) + 10
2 TextInput 0x345d7dee
KB::DynamicDictionaryImpl::background_load_address_book(KB::StaticDictionary const&) + 194
3 TextInput 0x345d8728 _ZN2KBL14BackgroundLoadEPv + 272
4 libsystem_c.dylib 0x3245c72e _pthread_start + 314
5 libsystem_c.dylib 0x3245c5e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ea85d98 r6: 0x00000002 r7: 0x2fe80a60
r8: 0x00000000 r9: 0x00000000 r10: 0x3f330d4c r11: 0x3f3459c0
ip: 0x00000148 sp: 0x2fe80a54 lr: 0x3249b20f pc: 0x3557532c
cpsr: 0x00020010
Apps are REQUIRED to run on the iPad too even if they target only the iPhone.
I assume that your iOS application target was set to iPhone and not universal?
If you believe all your settings are correct, you can submit an appeal to Apple:
https://developer.apple.com/appstore/contact/appreviewboard/index.html
Do what Lee Crossley said, but also you should go to the Resolution Center in iTunes Connect and tell the reviewer about this. They can reply and fix your problems. They will be better advice than us!

App rejected for crash on launch, but cannot replicate in either simulator or device, and device log is cryptic

I recently had an app rejected for crashing on launch on an iPhone 5 in iOS 5.0, and the good folks at Apple attached a crash report. However, I can't replicate this crash on either my device (also an iPhone 4 running iOS 5) or in the simulator for iOS 5. And, as you can see from the copy below, the report is cryptic. The crash is taking place in thread 5, which helpfully includes ??? where information should be.
First question - is this crash report symbolicated wrong? I kept the dSYM and dragged to the Organizer as per the guidelines.
If it is symbolicated right, I'm at a loss. I've checked through the warnings (all semantic, nothing that seems it could be a malloc/over-release problem), checked memory allocations, ran with NSZombie and malloc guards etc., but nothing seems wrong.
Can anyone help? Much appreciated, thanks.
Incident Identifier: 63777680-AF77-44B8-8264-47CF89D32C28
CrashReporter Key: 66ff952824b039efb0379c6c6fe11a2e035c7573
Hardware Model: iPhone3,1
Process: ---- [4453]
Path: /var/mobile/Applications/8F6C5D92-2052-4C56-9897-D6C50C1A7DA1/----/----
Identifier: ----
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-10-18 12:58:50.611 -0700
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00157550
Crashed Thread: 5
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x31dff060 semaphore_wait_trap + 8
1 libdispatch.dylib 0x32554124 _dispatch_semaphore_wait_slow + 184
2 libdispatch.dylib 0x32554154 dispatch_semaphore_wait$VARIANT$up + 28
3 libxpc.dylib 0x3514189a xpc_connection_send_message_with_reply_sync + 206
4 SystemConfiguration 0x356dfbe6 _reach_server_target_status + 938
5 SystemConfiguration 0x356e0d56 __SCNetworkReachabilityServer_targetStatus + 14
6 SystemConfiguration 0x356c9aee __SCNetworkReachabilityGetFlags + 198
7 SystemConfiguration 0x356cabc4 reachPerform + 240
8 CoreFoundation 0x30afeafc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
9 CoreFoundation 0x30afe35e __CFRunLoopDoSources0 + 358
10 CoreFoundation 0x30afd06e __CFRunLoopRun + 646
11 CoreFoundation 0x30a804d6 CFRunLoopRunSpecific + 294
12 CoreFoundation 0x30a8039e CFRunLoopRunInMode + 98
13 GraphicsServices 0x336aefe6 GSEventRunModal + 150
14 UIKit 0x32af273c UIApplicationMain + 1084
15 ----- 0x000022f2 0x1000 + 4850
16 ----- 0x000022bc 0x1000 + 4796
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x31dff3b4 kevent + 24
1 libdispatch.dylib 0x32553e78 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x32553b96 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x31dff010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31dff206 mach_msg + 50
2 CoreFoundation 0x30afe41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x30afd154 __CFRunLoopRun + 876
4 CoreFoundation 0x30a804d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x30a8039e CFRunLoopRunInMode + 98
6 WebCore 0x37314128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x362c7c16 _pthread_start + 314
8 libsystem_c.dylib 0x362c7ad0 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 5 Crashed:
0 ??? 0x00157550 0 + 1406288
1 ??? 0x626b5ef8 0 + 1651203832
Thread 6:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 5 crashed with ARM Thread State:
r0: 0x00157550 r1: 0x0000013a r2: 0x00000001 r3: 0x00000000
r4: 0x00157550 r5: 0x00048e20 r6: 0x05395ef0 r7: 0x33e83857
r8: 0x00000000 r9: 0x0000003b r10: 0x00000001 r11: 0x053960cc
ip: 0x0001ee79 sp: 0x05395e78 lr: 0x00011acf pc: 0x00157550
cpsr: 0x20000010
This looks like a crash of non-threadsafe web work. try running the zombie instrument
Turns out the problem was incorrect specification of supported architectures. For some reason, this managed to slip past the uploader validation step. After adding support for both armv6 and armv7 in "Valid Architectures in the Project and Target build settings, the review process went through fine.

Resources