I am trying to release my new App Version with In App Purchases but Apple rejected it twice with the following issue:
Your app crashed when we:
Attempted to download one of the In-App Purchases.
This occurred when your app was used:
- Offline
- On Wi-Fi
They sent me two Crash Logs which gives the following issues:
The first crash log:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: EXC_ARM_SP_ALIGN at 0x000000013fd4582e
Highlighted Thread: 1
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x0000000197071aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000196f75998 _dispatch_mgr_thread + 48
Thread 1 name: com.apple.NSURLConnectionLoader
Thread 1:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018aab2424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018ab40408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 2 name: com.apple.CFSocket.private
Thread 2:
0 libsystem_kernel.dylib 0x000000019708a76c __select + 8
1 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
2 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000189f132a4 CFRunLoopRun + 108
5 CoreMotion 0x000000018a676538 0x18a638000 + 255288
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
and the second one:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000013fefffb0
Highlighted Thread: 1
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x0000000197071aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000196f75998 _dispatch_mgr_thread + 48
Thread 1 name: com.apple.NSURLConnectionLoader
Thread 1:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018aab2424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018ab40408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 2 name: com.apple.CFSocket.private
Thread 2:
0 libsystem_kernel.dylib 0x000000019708a76c __select + 8
1 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
2 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 WebCore 0x0000000193aabfd8 RunWebThread(void*) + 468
5 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
6 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
7 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 4 name: JavaScriptCore::BlockFree
Thread 4:
0 libsystem_kernel.dylib 0x000000019708a394 __psynch_cvwait + 8
1 JavaScriptCore 0x000000018b1a6858 JSC::BlockAllocator::blockFreeingThreadMain() + 248
2 JavaScriptCore 0x000000018b1a2330 WTF::wtfThreadEntryPoint(void*) + 20
3 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
4 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
5 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 5 name: JavaScriptCore::Marking
Thread 5:
0 libsystem_kernel.dylib 0x000000019708a394 __psynch_cvwait + 8
1 JavaScriptCore 0x000000018b3ce514 JSC::GCThread::waitForNextPhase() + 104
2 JavaScriptCore 0x000000018b3ce5a8 JSC::GCThread::gcThreadMain() + 88
3 JavaScriptCore 0x000000018b1a2330 WTF::wtfThreadEntryPoint(void*) + 20
4 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
5 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
6 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 libAVFAudio.dylib 0x0000000188d5d5ec GenericRunLoopThread::Entry(void*) + 156
5 libAVFAudio.dylib 0x0000000188d5201c CAPThread::Entry(CAPThread*) + 100
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000189f132a4 CFRunLoopRun + 108
5 CoreMotion 0x000000018a676538 0x18a638000 + 255288
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
My app works fine in three devices i have tested it (iPhone 4, iPhone5, and iPad), it doesn't crash and i can purchase In Apps without any problem. My app responds to network reachability, so i have tested it when device is in offline mode, Wi-Fi only and when reachability changes while user is purchasing the InApp's. I have read and tried to analyze these crash logs, i have also checked for memory leaks with Allocations and Leaks and for low memory warnings with Zombies in Xcode Instruments but i can't seem to find anything wrong with my code.
Can you please give me a little help about what should i do and where should i look more carefully?