App Crashes because iAd Fails to Resume in Time - iphone

My app runs fine when I don't have iAds. As soon as I display an iAd the system shuts down my app because the iAd can't resume in time.
How do I resolve this?
Elapsed total CPU time (seconds): 1.380 (user 0.880, system 0.500), 14% CPU
Elapsed application CPU time (seconds): 0.000, 0% CPU
Thread 0:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 AppSupport 0x0001009e CPDMMessage + 158
3 AppSupport 0x0000f3e4 -[CPDistributedMessagingCenter _sendMessage:userInfoData:oolKey:oolData:makeServer:receiveReply:nonBlocking:error:] + 848
4 AppSupport 0x0000ed76 -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:nonBlocking:] + 618
5 AppSupport 0x0000deba -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:] + 58
6 AppSupport 0x0000e08e -[CPDistributedMessagingCenter sendMessageName:userInfo:] + 34
7 iAd 0x00012bcc -[ADSession sendMessageName:userInfo:] + 100
8 iAd 0x00013cfe -[ADSession open] + 22
9 iAd 0x000065c2 -[ADBannerView sessionDidBecomeAvailable:] + 38
10 iAd 0x00014d60 -[ADSessionManager considerCreatingSessions] + 416
11 iAd 0x00014a42 __-[ADSessionManager sessionForRecipient:]_block_invoke_1 + 34
12 libSystem.B.dylib 0x000d597c _dispatch_call_block_and_release + 12
13 libSystem.B.dylib 0x000d69f4 _dispatch_main_queue_callback_4CF + 212
14 CoreFoundation 0x00027894 __CFRunLoopRun + 1328
15 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
16 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
17 GraphicsServices 0x000045ec GSEventRunModal + 108
18 GraphicsServices 0x00004698 GSEventRun + 56
19 UIKit 0x0000411c -[UIApplication _run] + 396
20 UIKit 0x00002128 UIApplicationMain + 664
21 StockTwits 0x00002c5c main (main.m:14)
22 StockTwits 0x00002c2c start + 32

Sigh, it's a bug with iAds. No confirmed work around yet. Supposed fix in 4.2, no word if it's the 4.2 SDK that's required or if users will be required to upgrade.
https://devforums.apple.com/message/309701

Related

App rejection - Crash report says: failed to scene-create in time (badf00d) What is wrong?

my app just got rejected by apple, and I could use some help to figure out what is wrong. The app works fine on all my devices and does not crash. The app synchronizes with iCloud right when it launches. This works fine on my devices, but maybe something is up with that.
Here is the first crash report (symbolicated):
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
com.Name.App failed to scene-create in time
Elapsed total CPU time (seconds): 9.250 (user 9.250, system 0.000), 23% CPU
Elapsed application CPU time (seconds): 0.298, 1% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000192f7ceb8 semaphore_wait_trap + 8
1 libsystem_platform.dylib 0x00000001930299e0 _os_semaphore_wait + 20
2 libdispatch.dylib 0x0000000192e5e3e0 _dispatch_barrier_sync_f_slow + 516
3 Foundation 0x0000000182aedccc -[NSUbiquitousKeyValueStore _synchronizeForced:notificationQueue:] + 248
4 Foundation 0x0000000182aedb50 -[NSUbiquitousKeyValueStore synchronize] + 88
5 Cloud-Fryser 0x00000001000dab08 0x1000d0000 + 43784
6 UIKit 0x000000018645ce80 -[UIViewController loadViewIfRequired] + 688
7 UIKit 0x0000000186512374 -[UINavigationController _layoutViewController:] + 60
8 UIKit 0x0000000186512270 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 244
9 UIKit 0x000000018651170c -[UINavigationController _startTransition:fromViewController:toViewController:] + 108
10 UIKit 0x00000001865113b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 636
11 UIKit 0x00000001865110d8 -[UINavigationController __viewWillLayoutSubviews] + 52
12 UIKit 0x0000000186511058 -[UILayoutContainerView layoutSubviews] + 196
13 UIKit 0x0000000186459a28 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 568
14 QuartzCore 0x0000000185db1990 -[CALayer layoutSublayers] + 164
15 QuartzCore 0x0000000185dac560 CA::Layer::layout_if_needed(CA::Transaction*) + 316
16 QuartzCore 0x0000000185dac404 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
17 QuartzCore 0x0000000185dabc04 CA::Context::commit_transaction(CA::Transaction*) + 272
18 QuartzCore 0x0000000185dab988 CA::Transaction::commit() + 432
19 UIKit 0x00000001866e7014 -[UIApplication _reportMainSceneUpdateFinished:] + 56
20 UIKit 0x00000001866e7ec0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2776
21 UIKit 0x00000001866e6044 -[UIApplication workspaceDidEndTransaction:] + 180
22 FrontBoardServices 0x0000000189edd63c __31-[FBSSerialQueue performAsync:]_block_invoke + 24
23 CoreFoundation 0x0000000181c66120 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 CoreFoundation 0x0000000181c65228 __CFRunLoopDoBlocks + 308
25 CoreFoundation 0x0000000181c63428 __CFRunLoopRun + 692
26 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
27 UIKit 0x00000001864c7788 -[UIApplication _run] + 548
28 UIKit 0x00000001864c2780 UIApplicationMain + 1484
29 Cloud-Fryser 0x00000001000dc878 0x1000d0000 + 51320
30 libdyld.dylib 0x0000000192e7ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000192f7cc94 kevent64 + 8
1 libdispatch.dylib 0x0000000192e6497c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000192e573b0 _dispatch_mgr_thread + 48
Thread 2 name: Dispatch queue: com.apple.sydprotection
Thread 2:
0 libsystem_kernel.dylib 0x0000000192f96e50 __open + 8
1 libsystem_kernel.dylib 0x0000000192f95dbc open + 12
2 Foundation 0x0000000182ab1ebc _NSReadBytesFromFileWithExtendedAttributes + 132
3 Foundation 0x0000000182ab1ddc -[NSData(NSData) initWithContentsOfFile:] + 76
4 Foundation 0x0000000182ad87fc -[NSData(NSData) initWithContentsOfURL:] + 384
5 Foundation 0x0000000182ab1cf0 +[NSDictionary(NSDictionary) newWithContentsOf:immutable:] + 112
6 SyncedDefaults 0x000000018dbab224 -[SYDRemotePreferencesSource _cachePlistFromDisk] + 104
7 SyncedDefaults 0x000000018dbabedc -[SYDRemotePreferencesSource _synchronizeForced:] + 160
8 SyncedDefaults 0x000000018dbabdac __48-[SYDRemotePreferencesSource synchronizeForced:]_block_invoke + 36
9 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
10 libdispatch.dylib 0x0000000192e5e6e4 _dispatch_barrier_sync_f_invoke + 72
11 SyncedDefaults 0x000000018dbabd5c -[SYDRemotePreferencesSource synchronizeForced:] + 116
12 Foundation 0x0000000182aecc74 -[NSUbiquitousKeyValueStore synchronizeWithSourceForced:] + 32
13 Foundation 0x0000000182aecbe0 __46-[NSUbiquitousKeyValueStore _registerToDaemon]_block_invoke + 72
14 libdispatch.dylib 0x0000000192e553a8 _dispatch_call_block_and_release + 20
15 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
16 libdispatch.dylib 0x0000000192e5f4bc _dispatch_queue_drain + 1212
17 libdispatch.dylib 0x0000000192e58470 _dispatch_queue_invoke + 128
18 libdispatch.dylib 0x0000000192e61220 _dispatch_root_queue_drain + 660
19 libdispatch.dylib 0x0000000192e62758 _dispatch_worker_thread3 + 104
20 libsystem_pthread.dylib 0x00000001930312e0 _pthread_wqthread + 812
21 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000192f97c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000193031390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x0000000192f97c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000193031390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000193030fa4 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x0000000192f7ce7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000192f7ccf4 mach_msg + 68
2 CoreFoundation 0x0000000181c655c8 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c6351c __CFRunLoopRun + 936
4 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x0000000181be32a8 CFRunLoopRun + 108
6 CoreMotion 0x000000018258a9d4 0x182548000 + 272852
7 libsystem_pthread.dylib 0x0000000193033e7c _pthread_body + 160
8 libsystem_pthread.dylib 0x0000000193033dd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x0000000193030fac thread_start + 0
Here is the second crash report:
Application Specific Information:
com.Name.App failed to scene-create in time
Elapsed total CPU time (seconds): 20.300 (user 20.300, system 0.000), 49% CPU
Elapsed application CPU time (seconds): 0.207, 1% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000192f7ceb8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000192e62d98 _dispatch_group_wait_slow + 244
2 CloudDocs 0x0000000188427818 -[BRXPCSyncProxy resultWithTimeout:] + 72
3 CloudDocs 0x0000000188418bc0 __BRIsProcessForcingUbiquity_block_invoke + 172
4 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
5 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
6 CloudDocs 0x0000000188418b0c BRIsProcessForcingUbiquity + 60
7 Foundation 0x0000000182b3ad6c ___BRIsCloudDocsUsed_block_invoke + 44
8 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
9 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
10 Foundation 0x0000000182b35044 ___NSFrameworkHandleForLibrarianSymbols_block_invoke + 96
11 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
12 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
13 Foundation 0x0000000182b3acec ___initializeLibrarianFunctions_block_invoke + 268
14 libdispatch.dylib 0x0000000192e55368 _dispatch_client_callout + 12
15 libdispatch.dylib 0x0000000192e56240 dispatch_once_f + 92
16 Foundation 0x0000000182b3a5b0 -[NSFileManager URLForUbiquityContainerIdentifier:] + 544
17 Cloud-Fryser 0x000000010003dc04 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:20)
18 UIKit 0x00000001864ce3cc -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 300
19 UIKit 0x00000001866e522c -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2280
20 UIKit 0x00000001866e79ac -[UIApplication _runWithMainScene:transitionContext:completion:] + 1476
21 UIKit 0x00000001866e6044 -[UIApplication workspaceDidEndTransaction:] + 180
22 FrontBoardServices 0x0000000189edd63c __31-[FBSSerialQueue performAsync:]_block_invoke + 24
23 CoreFoundation 0x0000000181c66120 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
24 CoreFoundation 0x0000000181c65228 __CFRunLoopDoBlocks + 308
25 CoreFoundation 0x0000000181c6384c __CFRunLoopRun + 1752
26 CoreFoundation 0x0000000181b911f0 CFRunLoopRunSpecific + 392
27 UIKit 0x00000001864c7788 -[UIApplication _run] + 548
28 UIKit 0x00000001864c2780 UIApplicationMain + 1484
29 Cloud-Fryser 0x0000000100044878 main (main.m:16)
30 libdyld.dylib 0x0000000192e7ea04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000192f7cc94 kevent64 + 8
1 libdispatch.dylib 0x0000000192e6497c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000192e573b0 _dispatch_mgr_thread + 48
If you need additional information, just let me know.
The issue is very simple.
You just spend too much time loading your app on the splash screen and the iOS device stops your app.
The reason it only happens in the review and not when you test it is because you always run it from Xcode, and when running from Xcode it won't have this behavior.
If you will run your app directly from the device (by tapping its icon) you will see it will happen there as well. Assuming you spent too much time loading on that specific run.
Edit: Also I am seeing that you are stuck on a semaphore and don't use too much CPU, which might mean you have a deadlock which stalls the app on the reviewer's device and that is why it spends too much time loading and the device stops your app. Not sure...
Here is my devblog post if you are interested:
http://pompidev.net/2014/11/16/ios-app-works-on-xcode-but-crash-running-from-device/

iOS Xcode App crashes after release to App Store but not when testing

I've had an app on the app store for about a month and then I recently uploaded an updated binary to the App Store, version 2.0. It uses SpriteKit and ever since that update every person who downloaded it got a crash upon startup (this was apparent in the customer reviews). So I went back through my code and realized that I forgot to change one of the code signing options to Distribution instead of developer. After archiving that new binary, 2.1, and waiting ANOTHER week to have it released again, version 2.1 crashed as well. My app has been down for 2 weeks now and I'm fed up with this. I made very minor changes including a line of code in the AppDelegate.m that allows the user to play their own music in the background:
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
return YES;
}
I am not super comfortable with Xcode and it is my first app. I get this crash report in iTunes Connect:
Incident Identifier: A0DB04E6-A62B-46AB-8896-CE77A91064EF
Hardware Model: iPhone5,3
Process: PokeJump [831]
Path: /var/mobile/Applications/BB765A31-6028-429B-9939- F69DB8B62E85/PokeJump.app/PokeJump
Identifier: PokeJump.PokeJump
Version: 2.0 (2.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-01 19:07:36.341 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2fe61f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a5f8ce2 objc_exception_throw + 34
2 CoreFoundation 0x2fe61e48 +[NSException raise:format:] + 108
3 SpriteKit 0x325a6c12 +[SKPlaySound playSoundFileNamed:atPosition:waitForCompletion:] + 578
4 SpriteKit 0x3255f8ec +[SKAction(SKActions) playSoundFileNamed:waitForCompletion:] + 60
5 PokeJump 0x000637de 0x0005a000 + 38878
6 PokeJump 0x0006177e 0x0005a000 + 30590
7 PokeJump 0x0006e080 0x0005a000 + 82048
8 UIKit 0x32695a4e -[UIViewController loadViewIfRequired] + 514
9 UIKit 0x3269580c -[UIViewController view] + 20
10 UIKit 0x327b5292 -[UIWindow handleStatusBarChangeFromHeight:toHeight:] + 690
11 UIKit 0x3271c432 +[UIWindow _noteStatusBarHeightChanged:oldHeight:forAutolayoutRootViewsOnly:] + 234
12 UIKit 0x3281cb2c __79-[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:]_block_invoke + 128
13 UIKit 0x326c6a36 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 486
14 UIKit 0x327ff33a +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 66
15 UIKit 0x32741de6 -[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:] + 458
16 UIKit 0x3269c8fc -[UIApplication _updateCurrentStatusBarViewControllerAppearance] + 244
17 UIKit 0x32699d8e -[UIWindow _setHidden:forced:] + 230
18 UIKit 0x32703a4c -[UIWindow makeKeyAndVisible] + 56
19 UIKit 0x327006e0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1816
20 UIKit 0x326facc4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 716
21 UIKit 0x32696c92 -[UIApplication handleEvent:withNewEvent:] + 3546
22 UIKit 0x32695df4 -[UIApplication sendEvent:] + 68
23 UIKit 0x326fa400 _UIApplicationHandleEvent + 612
24 GraphicsServices 0x34d03b50 _PurpleEventCallback + 604
25 GraphicsServices 0x34d0373a PurpleEventCallback + 30
26 CoreFoundation 0x2fe2c842 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
27 CoreFoundation 0x2fe2c7de __CFRunLoopDoSource1 + 342
28 CoreFoundation 0x2fe2afaa __CFRunLoopRun + 1402
29 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
30 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
31 UIKit 0x326f9626 -[UIApplication _run] + 758
32 UIKit 0x326f488c UIApplicationMain + 1132
33 PokeJump 0x0006e73e 0x0005a000 + 83774
34 libdyld.dylib 0x3aaf6ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3abad1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3ac157b2 pthread_kill + 54
2 libsystem_c.dylib 0x3ab5dff4 abort + 72
3 libc++abi.dylib 0x39fac98a abort_message + 70
4 libc++abi.dylib 0x39fc56e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a5f8f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39fc31b0 std::__terminate(void
7 libc++abi.dylib 0x39fc2d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a5f8e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2fd957da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
11 UIKit 0x326f9626 -[UIApplication _run] + 758
12 UIKit 0x326f488c UIApplicationMain + 1132
13 PokeJump 0x0006e73e 0x5a000 + 83774
14 libdyld.dylib 0x3aaf6ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3ab9a804 kevent64 + 24
1 libdispatch.dylib 0x3aae9050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3aae32de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3ab9aa50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ab9a848 mach_msg + 36
2 CoreFoundation 0x2fe2c624 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2fe2ad44 __CFRunLoopRun + 788
4 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2edfa45e GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2edee8fc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
9 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
10 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 5:
0 AudioToolbox 0x2f74f7d4 CrashIfClientProvidedBogusAudioBufferList + 124
1 AudioToolbox 0x2f75e1d6 AudioConverterFillComplexBuffer + 250
2 AudioToolbox 0x2f81decc AUInputFormatConverter2::PullAndConvertInput(AudioTimeStamp const&, unsigned long&, AudioBufferList&, AudioStreamPacketDescription*, bool&) + 96
3 AudioToolbox 0x2f81da74 AUConverterBase::RenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long) + 212
4 AudioToolbox 0x2f7518f4 AUBase::DoRenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, AUOutputElement*, unsigned long, AudioBufferList&) + 144
5 AudioToolbox 0x2f751744 AUBase::DoRender(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long, AudioBufferList&) + 528
6 AudioToolbox 0x2f80d96c AURemoteIO::PerformIO(unsigned long, unsigned int, unsigned int, AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioBufferList*, int&) + 484
7 AudioToolbox 0x2f80e9b8 AURIOCallbackReceiver_PerformIO + 392
8 AudioToolbox 0x2f8050b2 _XPerformIO + 174
9 AudioToolbox 0x2f77264a mshMIGPerform + 122
10 AudioToolbox 0x2f7e1b28 MSHMIGDispatchMessage + 28
11 AudioToolbox 0x2f80dbe4 AURemoteIO::IOThread::Run() + 116
12 AudioToolbox 0x2f810cc4 AURemoteIO::IOThread::Entry(void*) + 4
13 AudioToolbox 0x2f74db38 CAPThread::Entry(CAPThread*) + 208
14 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
15 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
16 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
I realize it says version 2.0 on this crash report but I am assuming both crashed for the same reason. I am desperate to find a fix for this and it frustrates me so much because it runs perfectly fine on all the simulators and on my iPad and iPhone when I run it when connected to my computer. Any help would mean a lot. Thanks

Crash in ios 6 and later -[MKStoreManager provideContent:forReceipt:]

I have my app live which is non-consumable type.
App is crashing on iOS 6 and later. It is crashing on user's device but not on testing device.
Crash log says this:
Exception Type: SIGTRAP
Exception Codes: #0 at 0x3350316c
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x3350316c _CFHash + 8
1 CoreFoundation 0x00002b50 CFBasicHashFindBucket + 1892
2 CoreFoundation 0x33503a8b _CFDictionaryGetValue + 83
3 CoreFoundation 0x0004a7a7 -[CFXPreferencesPropertyListSource setValue:forKey:] + 39
4 CoreFoundation 0x0004a723 _CFXPreferencesSetValue + 135
5 CoreFoundation 0x3354a601 _CFPreferencesSetAppValue + 41
6 Foundation 0x00009907 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 83
7 myAppName 0x00038287 -[MKStoreManager provideContent:forReceipt:] (MKStoreManager.m:311)
8 myAppName 0x000387b1 -[MKStoreObserver restoreTransaction:] (MKStoreObserver.m:88)
9 myAppName 0x000385e1 -[MKStoreObserver paymentQueue:updatedTransactions:] (MKStoreObserver.m:64)
10 StoreKit 0x0000404d __NotifyObserverAboutChanges + 85
11 CoreFoundation 0x3350874d _CFArrayApplyFunction + 177
12 StoreKit 0x00003fe9 -[SKPaymentQueue _notifyObserversAboutChanges:sendUpdatedDownloads:] + 129
13 StoreKit 0x000048af -[SKPaymentQueue _processUpdates:trimUnmatched:sendUpdatedDownloads:] + 999
14 StoreKit 0x00004f8d -[SKPaymentQueue _setTransactionsWithReply:] + 157
15 StoreKit 0x00003b8b __block_global_0 + 63
16 libdispatch.dylib 0x0000211f _dispatch_call_block_and_release + 11
17 libdispatch.dylib 0x000014b7 _dispatch_client_callout + 23
18 libdispatch.dylib 0x000061bd _dispatch_main_queue_callback_4CF$VARIANT$mp + 225
19 CoreFoundation 0x00095f3b __CFRunLoopRun + 1291
20 CoreFoundation 0x33508ebd _CFRunLoopRunSpecific + 357
21 CoreFoundation 0x33508d49 _CFRunLoopRunInMode + 105
22 GraphicsServices 0x370bb2eb _GSEventRunModal + 75
23 UIKit 0x3541e301 _UIApplicationMain + 1121
24 myAppName 0x0000260f main (main.m:20)
This app supports iOS 4.3 and later.
I have tried in many ways but can't find proper solution. Anyone have any idea how I resolve this? Should I use some other code for in-app purchase?

App "failed to resume in time" and hangs

My app runs fine on my ipad but when I run it on my bosses ipad it hangs and stores the following device log, any ideas?
Incident Identifier: 6C33511B-7C9A-474C-B888-84A4FAFF6F91
CrashReporter Key: 93bbba4f690eb1b7638fa7a09a3ff3aa4e6872f4 Hardware
Model: iPad2,1 Process: Designer [5279] Path:
/var/mobile/Applications/7AA5BF4A-007D-47F8-B1C5-30667477AA12/Designer.app/Designer
Identifier: Designer Version: ??? (???) Code Type:
ARM (Native) Parent Process: launchd [1]
Date/Time: 2011-10-19 13:29:29.907 +0100 OS Version: iPhone
OS 5.0 (9A334) Report Version: 104
Exception Type: 00000020 Exception Codes: 0x8badf00d Highlighted
Thread: 0
Application Specific Information: Systems.Designer failed to resume in
time
Elapsed total CPU time (seconds): 0.000 (user 0.000, system 0.000), 0%
CPU Elapsed application CPU time (seconds): 0.002, 0% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0
libsystem_c.dylib 0x307d1a3c memset$VARIANT$CortexA9 +
100 1 libsqlite3.dylib 0x36cd3e7e 0x36cbf000 + 85630 2
libsqlite3.dylib 0x36cc73ec 0x36cbf000 + 33772 3
libsqlite3.dylib 0x36cc6c78 0x36cbf000 + 31864 4
libsqlite3.dylib 0x36cc64a8 0x36cbf000 + 29864 5
libsqlite3.dylib 0x36cc5f92 0x36cbf000 + 28562 6
libsqlite3.dylib 0x36cc5ce8 0x36cbf000 + 27880 7
libsqlite3.dylib 0x36cd29ea 0x36cbf000 + 80362 8
libsqlite3.dylib 0x36cc5962 sqlite3_exec + 678 9
libsqlite3.dylib 0x36cd273a 0x36cbf000 + 79674 10
libsqlite3.dylib 0x36cd228e 0x36cbf000 + 78478 11
libsqlite3.dylib 0x36cceebe 0x36cbf000 + 65214 12
libsqlite3.dylib 0x36ccb41a 0x36cbf000 + 50202 13
libsqlite3.dylib 0x36cc6c78 0x36cbf000 + 31864 14
libsqlite3.dylib 0x36cc6464 0x36cbf000 + 29796 15
libsqlite3.dylib 0x36cc5f92 0x36cbf000 + 28562 16
libsqlite3.dylib 0x36cc5ce8 0x36cbf000 + 27880 17
libsqlite3.dylib 0x36cfd094 sqlite3_prepare_v2 + 20 18
AppSupport 0x36efb8a4 CPSqlitePreparedStatement +
40 19 AppSupport 0x36efbbde
CPSqliteConnectionStatementForSQLAndIgnoreErrors + 114 20 AppSupport
0x36efc64e CPSqliteConnectionPerformSQL + 6 21 AppSupport
0x36efca44 _createConnectionForWriting + 360 22 AppSupport
0x36efcc06 _connectAndCheckVersion + 18 23 AppSupport
0x36efd0b8 CPSqliteDatabaseConnectionForWriting + 36 24 AppSupport
0x36efd18e CPSqliteDatabaseRegisterFunction + 14 25 AddressBook
0x324db6dc ABCDBContextCreateWithPathAndAddressBook + 208 26
AddressBook 0x324cf6fa
ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLinkingAndResetSortKeys
+ 226 27 AddressBook 0x324ddf88 ABAddressBookCreate + 8 28 Designer 0x000e222c
+[AddressBookModel createTableViewControllerItemFromABRecordID:] (AddressBookModel.m:15) 29 Designer 0x000e1ee0
-[CustomPersonPickerViewController getAllContacts] (CustomPersonPickerViewController.m:56) 30 Designer
0x000e1d9c -[CustomPersonPickerViewController
initWithSelectedABRecordID:andSelectAnItemViewDelegate:]
(CustomPersonPickerViewController.m:28) 31 Designer
0x000dce56 -[EditEntityViewController editAccountable:]
(EditEntityViewController.m:96) 32 CoreFoundation
0x3522442e -[NSObject performSelector:withObject:withObject:] + 46 33
UIKit 0x375d19e4 -[UIApplication
sendAction:to:from:forEvent:] + 56 34 UIKit
0x375d19a0 -[UIApplication sendAction:toTarget:fromSender:forEvent:]
+ 24 35 UIKit 0x375d197e -[UIControl sendAction:to:forEvent:] + 38 36 UIKit
0x375d16ee -[UIControl(Internal) _sendActionsForEvents:withEvent:] +
486 37 UIKit 0x375d131a -[UIControl
touchesBegan:withEvent:] + 238 38 UIKit
0x375d047e -[UIWindow _sendTouchesForEvent:] + 174 39 UIKit
0x375cfefa -[UIWindow sendEvent:] + 374 40 UIKit
0x375b64e6 -[UIApplication sendEvent:] + 350 41 UIKit
0x375b5d26 _UIApplicationHandleEvent + 5802 42 GraphicsServices
0x31d0be0c PurpleEventCallback + 876 43 CoreFoundation
0x3529e54c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 32 44 CoreFoundation 0x3529e4ee __CFRunLoopDoSource1 + 134 45 CoreFoundation 0x3529d33c __CFRunLoopRun + 1364 46 CoreFoundation
0x352204d6 CFRunLoopRunSpecific + 294 47 CoreFoundation
0x3522039e CFRunLoopRunInMode + 98 48 GraphicsServices
0x31d0afe6 GSEventRunModal + 150 49 UIKit
0x375e473c UIApplicationMain + 1084 50 Designer
0x000d4854 main (main.m:14) 51 Designer 0x000d480c
0xd3000 + 6156
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread
1: 0 libsystem_kernel.dylib 0x303ff3b4 kevent + 24 1
libdispatch.dylib 0x35b5ef74 _dispatch_mgr_invoke + 708 2
libdispatch.dylib 0x35b5ec92 _dispatch_mgr_thread + 30
Thread 2 name: WebThread Thread 2: 0 libsystem_kernel.dylib
0x3040f0d8 psynch_mutexwait + 24 1 libsystem_c.dylib
0x3075ec44 pthread_mutex_lock + 376 2 WebCore
0x362f536c _ZL17_WebTryThreadLockb + 208 3 WebCore
0x362f5670 ZL14WebRunLoopLockP19_CFRunLoopObservermPv + 24 4
CoreFoundation 0x3529eb44
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 12 5 CoreFoundation 0x3529cd80 __CFRunLoopDoObservers + 252
6 CoreFoundation 0x3529d19a __CFRunLoopRun + 946 7
CoreFoundation 0x352204d6 CFRunLoopRunSpecific + 294 8
CoreFoundation 0x3522039e CFRunLoopRunInMode + 98 9
WebCore 0x36397128 _ZL12RunWebThreadPv + 396 10
libsystem_c.dylib 0x3076bc16 _pthread_start + 314 11
libsystem_c.dylib 0x3076bad0 thread_start + 0
Unknown thread crashed with unknown flavor: 5, state_count: 1
Whenever you see a 0x8badf00d that means you are getting killed by the launch watchdog. Your app is taking too long to return from -applicationDidFinishLaunching.... Normal Core Data related causes to this are:
Trying to import data in the -applicationDidFinishLaunching...
Trying to perform a migration from -applicationDidFinishLaunching...
To solve this you need to change your start up. The creating of the Core Data stack should never be done in the -applicationDidFinishLaunching.... Instead let the -applicationDidFinishLaunching... finish and then stand up the Core Data stack. If a migration is needed (you can check this pretty easily) then present the user with a UI informing them of the delay and then kick it off.
In either case you need to return from the -applicationDidFinishLaunching... as fast as possible, you should only be creating UI elements in this method; you should not be accessing Core Data at this point.

App crashes very rare on start up

I have a strange problem with my app, sometimes, very rare in fact, when run on iPhone4, it crashes right at the beginning, I got the crash log, but I really can't make anything of it. I'm kind of stuck, where should I look? Here is the log:
0 libsystem_kernel.dylib 0x34c96a1c __pthread_kill + 8
1 libsystem_c.dylib 0x328ee3b4 pthread_kill + 52
2 libsystem_c.dylib 0x328e6bf8 abort + 72
3 libsystem_c.dylib 0x329146d4 __assert_rtn + 140
4 My App 0x0000fb8c 0x1000 + 60300
5 My App 0x0000fec4 0x1000 + 61124
6 My App 0x00009ffc 0x1000 + 36860
7 CoreFoundation 0x359c979c __invoking___ + 60
8 CoreFoundation 0x35941436 -[NSInvocation invoke] + 102
9 My App 0x0005f408 0x1000 + 386056
10 My App 0x0005c9b8 0x1000 + 375224
11 CoreFoundation 0x3593656a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
12 My App 0x000b60d4 0x1000 + 741588
13 My App 0x000b6bc0 0x1000 + 744384
14 My App 0x000b8c9c 0x1000 + 752796
15 UIKit 0x35584bee -[UIWindow _sendTouchesForEvent:] + 362
16 UIKit 0x35584568 -[UIWindow sendEvent:] + 256
17 UIKit 0x3556d30c -[UIApplication sendEvent:] + 292
18 UIKit 0x3556cc4c _UIApplicationHandleEvent + 5084
19 GraphicsServices 0x35350e70 PurpleEventCallback + 660
20 CoreFoundation 0x3599da90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
21 CoreFoundation 0x3599f838 __CFRunLoopDoSource1 + 160
22 CoreFoundation 0x359a0606 __CFRunLoopRun + 514
23 CoreFoundation 0x35930ebc CFRunLoopRunSpecific + 224
24 CoreFoundation 0x35930dc4 CFRunLoopRunInMode + 52
25 GraphicsServices 0x35350418 GSEventRunModal + 108
26 GraphicsServices 0x353504c4 GSEventRun + 56
27 UIKit 0x35597d62 -[UIApplication _run] + 398
28 UIKit 0x35595800 UIApplicationMain + 664
29 My App 0x00002118 0x1000 + 4376
30 My App 0x00002084 0x1000 + 4228
I was not able to find any pattern for the crash, it simply happens like maybe once in 30-40 app start-ups. What beats me, beside the fact that I don't know how the interpret the crash log, is why this happens so rare, with no apparent reason?
You need to symbolicate that crash log before you can see exactly which part of your code is crashing.