I'm fairly new to Swift and using Metal so please forgive if I've made a huge oversight.
I was following a tutorial for starting with MetalKit and the app works fine using "Build and Run" with a device connected, but it crashes on launch immediately when started from springboard.
Attaching the debugger prior to launch, I get the following breakpoint with a [UIResponder doesNotRecognizeSelector:]: message. This occurs immediately during the Storyboard initialization.
The view hierarchy is a
MySceneViewController: MetalViewController,MetalViewControllerDelegate
as the root view controller, with the mtkView below set in the main storyboard. There is nothing else in the app right now.
Again, this exact same code works when running from Xcode directly so I have no idea what I'm doing wrong here.
Thanks for your help. I'd be happy to add any other information if required.
Edit: added the debug trace from the phone log
Incident Identifier: F48966B5-12B6-446B-8A78-86787F776564
CrashReporter Key: 308bc148d5da7a16581206abaf74f6b2a5776702
Hardware Model: iPhone12,3
Process: Test Project [6466]
Path: /private/var/containers/Bundle/Application/EDB79F8D-B974-490E-8340-DD79F37CAB8C/Test Project.app/Test Project
Identifier: com.MyName.TestProject
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyName.TestProject [2592]
Date/Time: 2019-11-25 23:05:43.1609 -0500
Launch Time: 2019-11-25 23:05:43.0752 -0500
OS Version: iPhone OS 13.2.3 (17B111)
Release Type: User
Baseband Version: 1.02.18
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x1862ffab0 __exceptionPreprocess + 224
1 libobjc.A.dylib 0x186019028 objc_exception_throw + 59
2 CoreFoundation 0x1861fdf10 -[NSObject+ 200464 (NSObject) doesNotRecognizeSelector:] + 143
3 UIKitCore 0x18a414a58 -[UIResponder doesNotRecognizeSelector:] + 303
4 CoreFoundation 0x186304254 ___forwarding___ + 1327
5 CoreFoundation 0x1863063f0 _CF_forwarding_prep_0 + 95
6 Test Project 0x104914f90 0x10490c000 + 36752
7 Test Project 0x104914cc4 0x10490c000 + 36036
8 Test Project 0x104914b78 0x10490c000 + 35704
9 Foundation 0x1866a5b40 _NSSetUsingKeyValueSetter + 43
10 Foundation 0x1865e5e40 -[NSObject+ 212544 (NSKeyValueCoding) setValue:forKey:] + 315
11 UIKitCore 0x189d9a538 -[UIViewController setValue:forKey:] + 103
12 UIKitCore 0x18a073124 -[UIRuntimeOutletConnection connect] + 127
13 libobjc.A.dylib 0x186014c64 -[NSObject performSelector:] + 55
14 CoreFoundation 0x1861d34dc -[NSArray makeObjectsPerformSelector:] + 255
15 UIKitCore 0x18a070118 -[UINib instantiateWithOwner:options:] + 1971
16 UIKitCore 0x189da1538 -[UIViewController _loadViewFromNibNamed:bundle:] + 367
17 UIKitCore 0x189da1ffc -[UIViewController loadView] + 179
18 UIKitCore 0x189da22cc -[UIViewController loadViewIfRequired] + 187
19 UIKitCore 0x189da29b4 -[UIViewController view] + 31
20 UIKitCore 0x18a41dc58 -[UIWindow addRootViewControllerViewIfPossible] + 175
21 UIKitCore 0x18a41d354 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 227
22 UIKitCore 0x18a41e2f0 -[UIWindow _setHidden:forced:] + 367
23 UIKitCore 0x18a42f4d4 -[UIWindow _mainQueue_makeKeyAndVisible] + 51
24 UIKitCore 0x18a3dd2f0 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3219
25 UIKitCore 0x18a3e342c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1311
26 UIKitCore 0x189b7d55c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 151
27 UIKitCore 0x18a02ddb0 _UIScenePerformActionsWithLifecycleActionMask + 111
28 UIKitCore 0x189b7e094 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 211
29 UIKitCore 0x189b7dac4 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 303
30 UIKitCore 0x189b7deb0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 751
31 UIKitCore 0x189b7d734 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 339
32 UIKitCore 0x189b81ee4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 195
33 UIKitCore 0x18a047c34 ___UISceneSettingsDiffActionPerformChangesWithTransitionContext_block_invoke + 27
34 UIKitCore 0x189f5aeec +[BSAnimationSettings+ 5996268 (UIKit) tryAnimatingWithSettings:actions:completion:] + 867
35 UIKitCore 0x18a047bec _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 259
36 UIKitCore 0x189b81bfc __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 151
37 UIKitCore 0x18a047ad4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 107
38 UIKitCore 0x189b81a58 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 391
39 UIKitCore 0x1899e9b7c __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 639
40 UIKitCore 0x1899e8640 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 255
41 UIKitCore 0x1899e98ac -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 235
42 UIKitCore 0x18a3e17e0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 563
43 UIKitCore 0x189f7cdec -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 375
44 FrontBoardServices 0x18b4c9ec0 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 451
45 FrontBoardServices 0x18b4f0b50 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 115
46 FrontBoardServices 0x18b4d4fa4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 239
47 FrontBoardServices 0x18b4f07e4 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 343
48 libdispatch.dylib 0x185fa5fd8 _dispatch_client_callout + 19
49 libdispatch.dylib 0x185fa8d1c _dispatch_block_invoke_direct + 263
50 FrontBoardServices 0x18b517304 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
51 FrontBoardServices 0x18b516fb0 -[FBSSerialQueue _queue_performNextIfPossible] + 431
52 FrontBoardServices 0x18b51751c -[FBSSerialQueue _performNextFromRunLoopSource] + 31
53 CoreFoundation 0x18627b24c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
54 CoreFoundation 0x18627b1a0 __CFRunLoopDoSource0 + 83
55 CoreFoundation 0x18627a90c __CFRunLoopDoSources0 + 183
56 CoreFoundation 0x1862757d8 __CFRunLoopRun + 1067
57 CoreFoundation 0x186275084 CFRunLoopRunSpecific + 479
58 GraphicsServices 0x1904c3534 GSEventRunModal + 107
59 UIKitCore 0x18a3e5670 UIApplicationMain + 1939
60 Test Project 0x104926bf8 0x10490c000 + 109560
61 libdyld.dylib 0x1860f4e18 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001860eaefc __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018600ad10 pthread_kill + 196
2 libsystem_c.dylib 0x0000000185f9aa74 abort + 104
3 libc++abi.dylib 0x00000001860b23c8 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001860b25c0 demangling_unexpected_handler+ 5568 () + 0
5 libobjc.A.dylib 0x0000000186019308 _objc_terminate+ 25352 () + 124
6 libc++abi.dylib 0x00000001860bf634 std::__terminate(void (*)+ 58932 ()) + 20
7 libc++abi.dylib 0x00000001860bf5c0 std::terminate+ 58816 () + 44
8 libdispatch.dylib 0x0000000185fa5fec _dispatch_client_callout + 40
9 libdispatch.dylib 0x0000000185fa8d1c _dispatch_block_invoke_direct + 264
10 FrontBoardServices 0x000000018b517304 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x000000018b516fb0 -[FBSSerialQueue _queue_performNextIfPossible] + 432
12 FrontBoardServices 0x000000018b51751c -[FBSSerialQueue _performNextFromRunLoopSource] + 32
13 CoreFoundation 0x000000018627b24c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x000000018627b1a0 __CFRunLoopDoSource0 + 84
15 CoreFoundation 0x000000018627a90c __CFRunLoopDoSources0 + 184
16 CoreFoundation 0x00000001862757d8 __CFRunLoopRun + 1068
17 CoreFoundation 0x0000000186275084 CFRunLoopRunSpecific + 480
18 GraphicsServices 0x00000001904c3534 GSEventRunModal + 108
19 UIKitCore 0x000000018a3e5670 UIApplicationMain + 1940
20 Test Project 0x0000000104926bf8 0x10490c000 + 109560
21 libdyld.dylib 0x00000001860f4e18 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x0000000186011c74 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x0000000186011c74 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x0000000186011c74 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x0000000186011c74 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000186011c74 start_wqthread + 0
Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001860c8c04 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001860c8020 mach_msg + 76
2 CoreFoundation 0x000000018627aaa8 __CFRunLoopServiceMachPort + 220
3 CoreFoundation 0x0000000186275940 __CFRunLoopRun + 1428
4 CoreFoundation 0x0000000186275084 CFRunLoopRunSpecific + 480
5 Foundation 0x00000001865ba3d0 -[NSRunLoop+ 33744 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001865ba2a8 -[NSRunLoop+ 33448 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x000000018a481148 -[UIEventFetcher threadMain] + 156
8 Foundation 0x00000001865b9034 -[NSThread main] + 40
9 Foundation 0x00000001866f4a8c __NSThread__start__ + 852
10 libsystem_pthread.dylib 0x0000000186009d50 _pthread_start + 128
11 libsystem_pthread.dylib 0x0000000186011c88 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000016b4f1f30 x5: 0x000000016b4f24e0 x6: 0x000000000000006e x7: 0x0000000000000600
x8: 0x0000000104d3d840 x9: 0x00000000ce9b2cb7 x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x000000000000002e x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001c3b86f10 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000407 x21: 0x0000000104d3d920 x22: 0x0000000000000000 x23: 0x0000000104d3d920
x24: 0x0000000000001c03 x25: 0x0000000000000001 x26: 0x000000016b4f2ca0 x27: 0x0000000000000000
x28: 0x000000016b4f3b10 fp: 0x000000016b4f2440 lr: 0x000000018600ad10
sp: 0x000000016b4f2420 pc: 0x00000001860eaefc cpsr: 0x40000000
esr: 0x56000080 Address size fault
If application is launched from a Springboard, then mtkView has wrong type (UIView). To check it you can use command po in a debugger:
po self.mtkView
▿ Optional<MTKView>
- some : <UIView: 0x10a907450; frame = (0 0; 375 667); autoresize = W+H; layer = <CALayer: 0x2837a65a0>>
Just add Metall and MetalKit frameworks into the linking frameworks list:
I do not know why XCode does not link frameworks based on imports, but it solves the problem.
Related
I have a weird problem with my app. I needed to update the metadata on App Store connect and uploaded a new build to App Store. The only thing that was changed in code is two strings with version number. Everything else is exactly the same as a version that is live on the App Store (which works fine). I got a rejection with 2.1.0 Performance: App Completeness reason, turned out my app crashes on launch on reviewers device. I thought that this maybe a one time problem and tried to upload a new build with same results. Crash report looks like this:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1aaf29288 __exceptionPreprocess + 220
1 libobjc.A.dylib 0x1c3c23744 objc_exception_throw + 60
2 Realm 0x1031d3f90 RLMAccessorContext::createObject(objc_object*, realm::CreatePolicy, bool, realm::ObjKey) + 1776
3 Realm 0x103212e1c RLMAddObjectToRealm + 264
4 RealmSwift 0x1038784e0 Realm.add(_:update:) + 279776 (__hidden#4669_:438)
5 AppName 0x10275cf5c _hidden#5641_ + 282460 (__hidden#5706_:442)
6 AppName 0x1027dcd64 _hidden#12_ + 806244 (__hidden#1380_:0)
7 AppName 0x10275d1bc _hidden#296_ + 283068 (__hidden#1380_:0)
8 RealmSwift 0x103877d78 Realm.write<A>(withoutNotifying:_:) + 277880 (__hidden#4669_:255)
9 AppName 0x10275d0f0 _hidden#5647_ + 282864 (__hidden#5706_:438)
10 AppName 0x1028374a0 _hidden#15379_ + 1176736 (__hidden#15477_:382)
11 AppName 0x102838824 _hidden#15383_ + 1181732 (__hidden#1380_:0)
12 UIKitCore 0x1ad62f72c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340
13 UIKitCore 0x1ad816564 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3572
14 UIKitCore 0x1ad7ff118 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1180
15 UIKitCore 0x1ad65cd34 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
16 UIKitCore 0x1ad4b73b4 _UIScenePerformActionsWithLifecycleActionMask + 104
17 UIKitCore 0x1ad5e1d90 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
18 UIKitCore 0x1ad701aa0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
19 UIKitCore 0x1ad940764 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772
20 UIKitCore 0x1ad8cbd14 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
21 UIKitCore 0x1ad4b81a0 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
22 UIKitCore 0x1ad5780d8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
23 UIKitCore 0x1ad4ba0a4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
24 UIKitCore 0x1ad5a4244 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
25 UIKitCore 0x1ada28e60 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776
26 UIKitCore 0x1ad4e8484 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
27 UIKitCore 0x1ad52bcc4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
28 UIKitCore 0x1ad661b38 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584
29 UIKitCore 0x1ad5a2508 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
30 FrontBoardServices 0x1bd133294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
31 FrontBoardServices 0x1bd159090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
32 FrontBoardServices 0x1bd114308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
33 FrontBoardServices 0x1bd115958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
34 libdispatch.dylib 0x1aab90a30 _dispatch_client_callout + 20
35 libdispatch.dylib 0x1aab944e0 _dispatch_block_invoke_direct + 264
36 FrontBoardServices 0x1bd115c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
37 FrontBoardServices 0x1bd115040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
38 FrontBoardServices 0x1bd119700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
39 CoreFoundation 0x1aaf4b414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
40 CoreFoundation 0x1aaf5c1a0 __CFRunLoopDoSource0 + 208
41 CoreFoundation 0x1aae95694 __CFRunLoopDoSources0 + 268
42 CoreFoundation 0x1aae9b05c __CFRunLoopRun + 828
43 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
44 GraphicsServices 0x1c6fe2374 GSEventRunModal + 164
45 UIKitCore 0x1ad81e648 -[UIApplication _run] + 1100
46 UIKitCore 0x1ad59fd90 UIApplicationMain + 364
47 AppName 0x1027211c8 main + 37320 (__hidden#1378_:63)
48 dyld 0x102ed5ce4 start + 520
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x1e2965b38 __pthread_kill + 8
1 libsystem_pthread.dylib 0x21c0963bc pthread_kill + 268
2 libsystem_c.dylib 0x1b602f524 abort + 168
3 libc++abi.dylib 0x1c3d2eb7c abort_message + 132
4 libc++abi.dylib 0x1c3d1e9c4 demangling_terminate_handler() + 336
5 libobjc.A.dylib 0x1c3c29c68 _objc_terminate() + 144
6 libc++abi.dylib 0x1c3d2df18 std::__terminate(void (*)()) + 20
7 libc++abi.dylib 0x1c3d2deb4 std::terminate() + 64
8 libdispatch.dylib 0x1aab90a44 _dispatch_client_callout + 40
9 libdispatch.dylib 0x1aab944e0 _dispatch_block_invoke_direct + 264
10 FrontBoardServices 0x1bd115c70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x1bd115040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
12 FrontBoardServices 0x1bd119700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
13 CoreFoundation 0x1aaf4b414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x1aaf5c1a0 __CFRunLoopDoSource0 + 208
15 CoreFoundation 0x1aae95694 __CFRunLoopDoSources0 + 268
16 CoreFoundation 0x1aae9b05c __CFRunLoopRun + 828
17 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
18 GraphicsServices 0x1c6fe2374 GSEventRunModal + 164
19 UIKitCore 0x1ad81e648 -[UIApplication _run] + 1100
20 UIKitCore 0x1ad59fd90 UIApplicationMain + 364
21 AppName 0x1027211c8 main + 37320 (__hidden#1378_:63)
22 dyld 0x102ed5ce4 start + 520
Thread 1:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x1e295f4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e295fae4 mach_msg + 76
2 CoreFoundation 0x1aae96d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aae9b1bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
5 Foundation 0x1ac69d464 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1ac6dee2c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x1ad798770 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1ac6ed43c __NSThread__start__ + 808
9 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
10 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 5:
0 libsystem_pthread.dylib 0x21c08fe54 start_wqthread + 0
Thread 6 name: Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 6:
0 libsystem_kernel.dylib 0x1e2960138 __ulock_wait + 8
1 libdispatch.dylib 0x1aab91420 _dlock_wait + 56
2 libdispatch.dylib 0x1aab911d4 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x1aab9ff70 __DISPATCH_WAIT_FOR_QUEUE__ + 356
4 libdispatch.dylib 0x1aab9fb28 _dispatch_sync_f_slow + 144
5 UIKitCore 0x1ad6785ac __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 136
6 CoreFoundation 0x1aaeb1b24 __invoking___ + 148
7 CoreFoundation 0x1aaecf610 -[NSInvocation invoke] + 468
8 Foundation 0x1ac6b9938 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 24
9 Foundation 0x1ac6daf74 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 572
10 Foundation 0x1ac6b5480 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212
11 libxpc.dylib 0x21c0c56ac _xpc_connection_reply_callout + 124
12 libxpc.dylib 0x21c0b8bcc _xpc_connection_call_reply_async + 88
13 libdispatch.dylib 0x1aab90ab0 _dispatch_client_callout3 + 20
14 libdispatch.dylib 0x1aabae214 _dispatch_mach_msg_async_reply_invoke + 340
15 libdispatch.dylib 0x1aab98000 _dispatch_lane_serial_drain + 376
16 libdispatch.dylib 0x1aab98cb4 _dispatch_lane_invoke + 444
17 libdispatch.dylib 0x1aaba3500 _dispatch_workloop_worker_thread + 648
18 libsystem_pthread.dylib 0x21c0900bc _pthread_wqthread + 288
19 libsystem_pthread.dylib 0x21c08fe5c start_wqthread + 8
Thread 7 name: AVAudioSession Notify Thread
Thread 7:
0 libsystem_kernel.dylib 0x1e295f4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1e295fae4 mach_msg + 76
2 CoreFoundation 0x1aae96d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1aae9b1bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1aaeaebc8 CFRunLoopRunSpecific + 600
5 AudioSession 0x1b44baf04 CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6 AudioSession 0x1b44c48f0 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
8 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 8 name: Realm notification listener
Thread 8:
0 libsystem_kernel.dylib 0x1e2960e18 kevent + 8
1 Realm 0x103528db4 realm::_impl::ExternalCommitHelper::listen() + 156
2 Realm 0x103528f04 _hidden#16050_ + 52
3 libsystem_pthread.dylib 0x21c0909ac _pthread_start + 148
4 libsystem_pthread.dylib 0x21c08fe68 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x00000001c3d320f5 x5: 0x000000016d6e6310 x6: 0x000000000000006e x7: 0x0000000000000400
x8: 0x54b9f472dc7144f9 x9: 0x54b9f473de83c179 x10: 0x0000000000000200 x11: 0x000000000000000b
x12: 0x000000000000000b x13: 0x00000001ab266a9f x14: 0x00000001c3d3211b x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000102f28580 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000102f28660 x22: 0x0000000000000000 x23: 0x0000000102f28660
x24: 0x00000002040a7000 x25: 0x000000016d6e6aa0 x26: 0x000000002b3100d5 x27: 0x00000002040a7000
x28: 0x00000002040a7000 fp: 0x000000016d6e6280 lr: 0x000000021c0963bc
sp: 0x000000016d6e6260 pc: 0x00000001e2965b38 cpsr: 0x40000000
far: 0x0000000201cce768 esr: 0x56000080 Address size fault
Looks like Facebook SDK(?) crashing the app? And what is about Realm?
The problem is I can't reproduce the crash anywhere. Simulator or 5 real devices do not crash. I also see that Apple now use iPhone Xr as reviewer device (it was iPad before?). Tried to run app on iPhone Xr and it doesn't crash as well. Tried different combinations of Debug/Release, setting Exception Breakpoints without any luck.
Will be really thankful for any insight on how to approach this problem or what is going on here. Thank you very much!
I am not sure 100% if this is the fix to my problem as I was not able to reproduce this crash on any of mine or tester devices. However I had ATTrackingManager.requestTrackingAuthorization in App Delegate which appears to be not the place where you should use it. I moved it to initial viewcontroller and this fixed this crash for me and app got approved. But again I am not sure if I am maybe just lucky this time because I was not able to reproduce it in anyway and the app with this function in App Delegate was in store before, but maybe it crashes sometime not sure. If anyone with more knowledge of what might happen can write in that can be helpful for future. Thanks everyone.
I'm receiving a crash in my iOS game. This game utilizes GKAccessPoints and the Game Center UI's. I only noticed this crash in the released versions of my game (non-beta versions).
The reason I think this has something to do with GameKit is because of where it says GameCenterUI and access point. Other than that I'm not sure what's causing this. I have tried opening the crash it in my project and it did not pinpoint a line of code that was causing this. This makes me think that this could be an error with Apple's GameKit class. But then again I'm not sure. I am attaching a full crash report (I am erasing some sensitive information like app). I removed the Binary Image section because of character limits.
Any pointers or help would be greatly appreciated. If you need more information just ask. thank you.
Role: Foreground
Parent Process: launchd [1]
Coalition:
OS Version: iPhone OS 14.4.2 (18D70)
Release Type: User
Baseband Version: 3.02.02
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001a39dba18
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [1890]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libswiftCore.dylib 0x00000001a39dba18 _assertionFailure(_:_:file:line:flags:) + 492 (AssertCommon.swift:132)
1 libswiftCore.dylib 0x00000001a39dba18 _assertionFailure(_:_:file:line:flags:) + 492 (AssertCommon.swift:132)
2 GameCenterUI 0x00000001b7090f60 specialized AccessPointRootViewController.supportedInterfaceOrientations.getter + 276 (GKAccessPoint.swift:33)
3 UIKitCore 0x00000001a205e10c -[UIViewController __supportedInterfaceOrientations] + 708 (UIViewController.m:9782)
4 UIKitCore 0x00000001a204e418 -[UIViewController _preferredInterfaceOrientationGivenCurrentOrientation:] + 120 (UIViewController.m:6492)
5 UIKitCore 0x00000001a27b1470 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 328 (UIWindow.m:3893)
6 CoreFoundation 0x000000019fd0e9a0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 (CFNotificationCenter.c:706)
7 CoreFoundation 0x000000019fd0e948 ___CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173)
8 CoreFoundation 0x000000019fd0deb0 _CFXRegistrationPost + 440 (CFNotificationCenter.c:198)
9 CoreFoundation 0x000000019fd0d870 _CFXNotificationPost + 716 (CFNotificationCenter.c:1071)
10 Foundation 0x00000001a0fd44bc -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 (NSNotification.m:575)
11 UIKitCore 0x00000001a2761c54 -[UIApplication _stopDeactivatingForReason:] + 964 (UIApplication.m:1899)
12 UIKitCore 0x00000001a1dc12a0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 440 (_UISceneLifecycleMultiplexer.m:108)
13 UIKitCore 0x00000001a1dc161c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 768 (_UISceneLifecycleMultiplexer.m:548)
14 UIKitCore 0x00000001a1dc0e58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 (_UISceneLifecycleMultiplexer.m:454)
15 UIKitCore 0x00000001a1bec1a0 -[UIScene _invalidate] + 804 (UIScene.m:683)
16 UIKitCore 0x00000001a29e5014 -[UIWindowScene _invalidate] + 52 (UIWindowScene.m:268)
17 UIKitCore 0x00000001a2769180 -[UIApplication workspace:willDestroyScene:withTransitionContext:completion:] + 208 (UIApplication.m:3725)
18 UIKitCore 0x00000001a226505c -[UIApplicationSceneClientAgent scene:willInvalidateWithEvent:completion:] + 388 (UIApplicationSceneClientAgent.m:61)
19 FrontBoardServices 0x00000001afb1a570 -[FBSScene _callOutQueue_agent_willDestroyWithTransitionContext:completion:] + 276 (FBSScene.m:452)
20 FrontBoardServices 0x00000001afb47b1c __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke_2 + 128 (FBSWorkspaceScenesClient.m:574)
21 FrontBoardServices 0x00000001afb294a0 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:355)
22 FrontBoardServices 0x00000001afb4796c __84-[FBSWorkspaceScenesClient _queue_invalidateScene:withTransitionContext:completion:]_block_invoke + 328 (FBSWorkspaceScenesClient.m:573)
23 libdispatch.dylib 0x000000019f9a5db0 _dispatch_client_callout + 20 (object.m:559)
24 libdispatch.dylib 0x000000019f9a9738 _dispatch_block_invoke_direct + 268 (queue.c:468)
25 FrontBoardServices 0x00000001afb6e250 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:184)
26 FrontBoardServices 0x00000001afb6dee0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 448 (FBSSerialQueue.m:227)
27 FrontBoardServices 0x00000001afb6e434 -[FBSSerialQueue _performNextFromRunLoopSource] + 32 (FBSSerialQueue.m:258)
28 CoreFoundation 0x000000019fd2d76c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1967)
29 CoreFoundation 0x000000019fd2d668 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011)
30 CoreFoundation 0x000000019fd2c960 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2048)
31 CoreFoundation 0x000000019fd26a8c __CFRunLoopRun + 824 (CFRunLoop.c:2925)
32 CoreFoundation 0x000000019fd2621c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
33 GraphicsServices 0x00000001b78f0784 GSEventRunModal + 164 (GSEvent.c:2259)
34 UIKitCore 0x00000001a2766ee8 -[UIApplication _run] + 1072 (UIApplication.m:3253)
35 UIKitCore 0x00000001a276c75c UIApplicationMain + 168 (UIApplication.m:4707)
36 libswiftUIKit.dylib 0x00000001b408b2e4 UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:528)
37 Tank Fighters 0x0000000102c2e738 main + 80 (<compiler-generated>:12)
38 Tank Fighters 0x0000000102c2e738 $main + 92 (StoreViewController.swift:0)
39 Tank Fighters 0x0000000102c2e738 main + 108
40 libdyld.dylib 0x000000019f9e66b0 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001cdcdd2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cdcdc660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019fd2cc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019fd26c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019fd2621c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 Foundation 0x00000001a0fd5df0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374)
6 Foundation 0x00000001a0fd5cbc -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:421)
7 UIKitCore 0x00000001a281ac48 -[UIEventFetcher threadMain] + 516 (UIEventFetcher.m:838)
8 Foundation 0x00000001a1147a34 __NSThread__start__ + 864 (NSThread.m:724)
9 libsystem_pthread.dylib 0x00000001eb85bcb0 _pthread_start + 320 (pthread.c:881)
10 libsystem_pthread.dylib 0x00000001eb864778 thread_start + 8
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001cdcdd2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cdcdc660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019fd2cc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019fd26c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019fd2621c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 AudioSession 0x00000001a786f0c4 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:91)
6 AudioSession 0x00000001a787125c CAPThread::Entry(CAPThread*) + 92 (CAPThread.cpp:321)
7 libsystem_pthread.dylib 0x00000001eb85bcb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001eb864778 thread_start + 8
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001cdcdd2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cdcdc660 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019fd2cc30 __CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019fd26c14 __CFRunLoopRun + 1216 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019fd2621c CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 AudioToolbox 0x00000001a8eca9fc GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:91)
6 libAudioToolboxUtility.dylib 0x00000001b555b144 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92 (CAPThread.cpp:324)
7 libsystem_pthread.dylib 0x00000001eb85bcb0 _pthread_start + 320 (pthread.c:881)
8 libsystem_pthread.dylib 0x00000001eb864778 thread_start + 8
Thread 4:
0 libsystem_pthread.dylib 0x00000001eb864764 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001eb864764 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x00000001eb864764 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x00000001eb864764 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00000001eb864764 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x80000001b727eec0 x1: 0x00000002818cca80 x2: 0x0000000000000007 x3: 0x00000001afbaacdc
x4: 0x00000000000062dc x5: 0x000000016d1d9040 x6: 0x0000000000000077 x7: 0x0000000000000001
x8: 0x000000000000007f x9: 0x0000000000000016 x10: 0x00000000000007fb x11: 0x00000000000007fd
x12: 0x0000000000000001 x13: 0x00000000b8036818 x14: 0x00000000b8237000 x15: 0x000000000000006e
x16: 0x0000000080000000 x17: 0x0000000038200000 x18: 0x00000001057f75b2 x19: 0x00000001b727f010
x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000021 x23: 0x00000001b727eeb0
x24: 0x80000001b727eec0 x25: 0xd000000000000017 x26: 0x000000000000000b x27: 0x0000000000000002
x28: 0x0000000000000018 fp: 0x000000016d1d91e0 lr: 0x00000001a39dba18
sp: 0x000000016d1d9160 pc: 0x00000001a39dba18 cpsr: 0x60000000
esr: 0xf2000001 Address size fault
EOF
I have an App that is repeatedly being rejected from Apple App Review for this reason:
Guideline 2.1 - Performance - App Completeness
We were still unable to review your app as it still crashed on launch when reviewed on iPad and iPhone running iOS 13.5.1 on Wi-Fi. We have attached detailed crash logs to help troubleshoot this issue.
I am not able to reproduce what they are experiencing. I have tested on multiple iPhones and iPads on the same iOS version with no crashes.
This is the crash log they have sent. ( I have tried to symbolicate it myself in Xcode 11.5 )
Any ideas on what the log is indicating? I cannot figure out anything pertinent from it.
Hardware Model: iPhone11,8
Process: XxxxxxxxxxxX [7724]
Identifier: com.XxxxxxxxxxxX.XxxxxxxxxxxX
Version: 4 (2.7)
AppStoreTools: 11E608a
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.XxxxxxxxxxxX.XxxxxxxxxxxX [2534]
Date/Time: 2020-07-13 12:41:09.8242 -0700
Launch Time: 2020-07-13 12:41:09.6876 -0700
OS Version: iPhone OS 13.5.1 (17F80)
Release Type: User
Baseband Version: 2.06.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x19ad24300 __exceptionPreprocess + 228
1 libobjc.A.dylib 0x19aa38c1c objc_exception_throw + 59
2 CoreFoundation 0x19ac13e68 +[NSException raise:format:] + 111
3 UIKitCore 0x19e7b1440 -[UISearchDisplayController initWithCoder:] + 87
4 UIFoundation 0x19e388bcc UINibDecoderDecodeObjectForValue + 727
5 UIFoundation 0x19e388dec UINibDecoderDecodeObjectForValue + 1271
6 UIFoundation 0x19e323fe0 -[UINibDecoder decodeObjectForKey:] + 311
7 UIKitCore 0x19e7fa11c -[UIViewController initWithCoder:] + 1043
8 UIKitCore 0x19eae6dbc -[UIClassSwapper initWithCoder:] + 2367
9 UIFoundation 0x19e388bcc UINibDecoderDecodeObjectForValue + 727
10 UIFoundation 0x19e388dec UINibDecoderDecodeObjectForValue + 1271
11 UIFoundation 0x19e323fe0 -[UINibDecoder decodeObjectForKey:] + 311
12 UIKitCore 0x19eae60ac -[NSCoder+ 7241900 (UIIBDependencyInjectionInternal) _decodeObjectsAndTrackChildViewControllerIndexWithParent:forKey:] + 319
13 UIKitCore 0x19e7fa2d4 -[UIViewController initWithCoder:] + 1483
14 UIKitCore 0x19e738abc -[UITabBarController initWithCoder:] + 83
15 UIKitCore 0x19eae6dbc -[UIClassSwapper initWithCoder:] + 2367
16 UIFoundation 0x19e388bcc UINibDecoderDecodeObjectForValue + 727
17 UIFoundation 0x19e323fe0 -[UINibDecoder decodeObjectForKey:] + 311
18 UIKitCore 0x19eaeaec0 -[UIRuntimeConnection initWithCoder:] + 131
19 UIFoundation 0x19e388bcc UINibDecoderDecodeObjectForValue + 727
20 UIFoundation 0x19e388dec UINibDecoderDecodeObjectForValue + 1271
21 UIFoundation 0x19e323fe0 -[UINibDecoder decodeObjectForKey:] + 311
22 UIKitCore 0x19eae5e90 -[NSCoder+ 7241360 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 491
23 UIKitCore 0x19eae8a58 -[UINib instantiateWithOwner:options:] + 1067
24 UIKitCore 0x19efda9c4 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 283
25 UIKitCore 0x19efda85c -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 127
26 UIKitCore 0x19ee6c390 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 183
27 UIKitCore 0x19ee6c8fc -[UIApplication _loadMainInterfaceFile] + 275
28 UIKitCore 0x19ee6b068 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1003
29 UIKitCore 0x19e5db03c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 151
30 UIKitCore 0x19eaa6d68 _UIScenePerformActionsWithLifecycleActionMask + 111
31 UIKitCore 0x19e5dbb70 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 211
32 UIKitCore 0x19e5db59c -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 295
33 UIKitCore 0x19e5db98c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 755
34 UIKitCore 0x19e5db214 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 339
35 UIKitCore 0x19e5df930 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 195
36 UIKitCore 0x19e9c5604 +[BSAnimationSettings+ 6059524 (UIKit) tryAnimatingWithSettings:actions:completion:] + 855
37 UIKitCore 0x19eac0a0c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 259
38 UIKitCore 0x19e5df66c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 155
39 UIKitCore 0x19eac08f4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 107
40 UIKitCore 0x19e5df4c4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 391
41 UIKitCore 0x19e445ba4 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 639
42 UIKitCore 0x19e4446a4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 255
43 UIKitCore 0x19e4458d4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 235
44 UIKitCore 0x19ee693fc -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 551
45 UIKitCore 0x19e9ebe08 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 375
46 FrontBoardServices 0x19ff86ffc -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 439
47 FrontBoardServices 0x19ffad5a0 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 115
48 FrontBoardServices 0x19ff91ebc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 239
49 FrontBoardServices 0x19ffad234 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 343
50 libdispatch.dylib 0x19a9c433c _dispatch_client_callout + 19
51 libdispatch.dylib 0x19a9c70d4 _dispatch_block_invoke_direct + 263
52 FrontBoardServices 0x19ffd36c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
53 FrontBoardServices 0x19ffd3370 -[FBSSerialQueue _queue_performNextIfPossible] + 431
54 FrontBoardServices 0x19ffd38dc -[FBSSerialQueue _performNextFromRunLoopSource] + 31
55 CoreFoundation 0x19ac9faf4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
56 CoreFoundation 0x19ac9fa48 __CFRunLoopDoSource0 + 83
57 CoreFoundation 0x19ac9f198 __CFRunLoopDoSources0 + 195
58 CoreFoundation 0x19ac99f38 __CFRunLoopRun + 795
59 CoreFoundation 0x19ac998f4 CFRunLoopRunSpecific + 479
60 GraphicsServices 0x1a50b0604 GSEventRunModal + 163
61 UIKitCore 0x19ee6d358 UIApplicationMain + 1943
62 XxxxxxxxxxxX 0x1042bfff4 main + 32756 (main.m:23)
63 libdyld.dylib 0x19ab152dc start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000019ab0adf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000019aa2a930 pthread_kill + 228
2 libsystem_c.dylib 0x000000019a9b8ba4 abort + 104
3 libc++abi.dylib 0x000000019aaddf40 __cxxabiv1::__aligned_malloc_with_fallback+ 65344 (unsigned long) + 0
4 libc++abi.dylib 0x000000019aacf8c8 demangling_unexpected_handler+ 6344 () + 0
5 libobjc.A.dylib 0x000000019aa38f0c _objc_terminate+ 24332 () + 132
6 libc++abi.dylib 0x000000019aadd3cc std::__terminate(void (*)+ 62412 ()) + 20
7 libc++abi.dylib 0x000000019aadd358 std::terminate+ 62296 () + 44
8 libdispatch.dylib 0x000000019a9c4350 _dispatch_client_callout + 40
9 libdispatch.dylib 0x000000019a9c70d4 _dispatch_block_invoke_direct + 264
10 FrontBoardServices 0x000000019ffd36c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x000000019ffd3370 -[FBSSerialQueue _queue_performNextIfPossible] + 432
12 FrontBoardServices 0x000000019ffd38dc -[FBSSerialQueue _performNextFromRunLoopSource] + 32
13 CoreFoundation 0x000000019ac9faf4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x000000019ac9fa48 __CFRunLoopDoSource0 + 84
15 CoreFoundation 0x000000019ac9f198 __CFRunLoopDoSources0 + 196
16 CoreFoundation 0x000000019ac99f38 __CFRunLoopRun + 796
17 CoreFoundation 0x000000019ac998f4 CFRunLoopRunSpecific + 480
18 GraphicsServices 0x00000001a50b0604 GSEventRunModal + 164
19 UIKitCore 0x000000019ee6d358 UIApplicationMain + 1944
20 XxxxxxxxxxxX 0x00000001042bfff4 main + 32756 (main.m:23)
21 libdyld.dylib 0x000000019ab152dc start + 4
Thread 1:
0 libsystem_pthread.dylib 0x000000019aa319c0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x000000019aa319c0 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x000000019aa319c0 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x000000019aa319c0 start_wqthread + 0
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x000000019aae8784 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000019aae7ba8 mach_msg + 76
2 CoreFoundation 0x000000019ac9f314 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x000000019ac9a0a0 __CFRunLoopRun + 1156
4 CoreFoundation 0x000000019ac998f4 CFRunLoopRunSpecific + 480
5 Foundation 0x000000019afe2b18 -[NSRunLoop+ 31512 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x000000019afe29f0 -[NSRunLoop+ 31216 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x000000019ef13840 -[UIEventFetcher threadMain] + 156
8 Foundation 0x000000019b11cc10 __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x000000019aa298fc _pthread_start + 168
10 libsystem_pthread.dylib 0x000000019aa319d4 thread_start + 8
Thread 6:
0 libsystem_pthread.dylib 0x000000019aa319c0 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000016bb45f30 x5: 0x000000016bb464e0 x6: 0x000000000000006e x7: 0x0000000000000700
x8: 0x00000000000005b9 x9: 0x97607b88fb8b2847 x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x000000000000002e x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001dcaaa808 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000407 x21: 0x0000000104611960 x22: 0x0000000000000000 x23: 0x0000000104611960
x24: 0x0000000000001e03 x25: 0x0000000000000001 x26: 0x000000016bb46cb0 x27: 0x0000000000000000
x28: 0x00000001e5b54000 fp: 0x000000016bb46440 lr: 0x000000019aa2a930
sp: 0x000000016bb46420 pc: 0x000000019ab0adf0 cpsr: 0x40000000
esr: 0x56000080 Address size fault
From looking at the report it seems that one or more of your xib or storyboard files contain a UISearchDisplayController element. This element is not available anymore in the latest iOS versions. I would suggest removing all UISearchDisplayController instances from your project.
Getting this crash and I'm unable to find the cause.
The app is in testflight and is compiled with Xcode 13.5.1.
It is mixed Objective-c and Swift.
Crashes immediately and seems even to not enter Appdelegate.
The same app compiled with Xcode 10.3 and downloaded from testflight works perfectly.
Works when executed in both Xcode 13.5.1 and Xcode 10.3
{"app_cohort":"2|date=1592407800000&sf=143450&tid=3ad7fff33af6e11a89f32b7a1ba44b6729e557a7e7d872f0c5656bdbddaca6ed&ttype=i","app_name":"AppGolf","app_version":"1.99","timestamp":"2020-06-17 17:45:40.00 +0200","slice_uuid":"fde6c956-2d19-3c15-936a-3cccf74edc6e","adam_id":945626343,"build_version":"24","bundleID":"net.edisoftweb.ModenaGolf","share_with_app_devs":1,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 13.5.1 (17F80)","incident_id":"592037EF-0808-484A-8945-18CA99D5E976","name":"AppGolf","is_beta":1}
Incident Identifier: 592037EF-0808-484A-8945-18CA99D5E976
Beta Identifier: 96D9F66C-E982-493E-AA3E-E714192A0BE2
Hardware Model: iPhone11,8
Process: AppGolf [3366]
Path: /private/var/containers/Bundle/Application/3CB71C90-9FE9-4526-9777-8DDC86269E66/AppGolf.app/AppGolf
Identifier: net.edisoftweb.ModenaGolf
Version: 24 (1.99)
AppStoreTools: 11E608a
AppVariant: 1:iPhone11,8:13
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: net.edisoftweb.ModenaGolf [2171]
Date/Time: 2020-06-17 17:45:39.8379 +0200
Launch Time: 2020-06-17 17:45:39.1565 +0200
OS Version: iPhone OS 13.5.1 (17F80)
Release Type: User
Baseband Version: 2.06.00
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x1a3288300 __exceptionPreprocess + 228
1 libobjc.A.dylib 0x1a2f9cc1c objc_exception_throw + 59
2 CoreFoundation 0x1a3177e68 +[NSException raise:format:] + 111
3 UIKitCore 0x1a6d15440 -[UISearchDisplayController initWithCoder:] + 87
4 UIFoundation 0x1a68ecbcc UINibDecoderDecodeObjectForValue + 727
5 UIFoundation 0x1a68ecfb8 UINibDecoderDecodeObjectForValue + 1731
6 UIFoundation 0x1a6887fe0 -[UINibDecoder decodeObjectForKey:] + 311
7 UIKitCore 0x1a6d5e0dc -[UIViewController initWithCoder:] + 979
8 UIKitCore 0x1a6d54230 -[UITableViewController initWithCoder:] + 67
9 UIKitCore 0x1a704adbc -[UIClassSwapper initWithCoder:] + 2367
10 UIFoundation 0x1a68ecbcc UINibDecoderDecodeObjectForValue + 727
11 UIFoundation 0x1a68ecdec UINibDecoderDecodeObjectForValue + 1271
12 UIFoundation 0x1a6887fe0 -[UINibDecoder decodeObjectForKey:] + 311
13 UIKitCore 0x1a704a0ac -[NSCoder+ 7241900 (UIIBDependencyInjectionInternal) _decodeObjectsAndTrackChildViewControllerIndexWithParent:forKey:] + 319
14 UIKitCore 0x1a6d5e2d4 -[UIViewController initWithCoder:] + 1483
15 UIKitCore 0x1a6cb9314 -[UINavigationController initWithCoder:] + 75
16 UIKitCore 0x1a704adbc -[UIClassSwapper initWithCoder:] + 2367
17 UIFoundation 0x1a68ecbcc UINibDecoderDecodeObjectForValue + 727
18 UIFoundation 0x1a68ecdec UINibDecoderDecodeObjectForValue + 1271
19 UIFoundation 0x1a6887fe0 -[UINibDecoder decodeObjectForKey:] + 311
20 UIKitCore 0x1a704a0ac -[NSCoder+ 7241900 (UIIBDependencyInjectionInternal) _decodeObjectsAndTrackChildViewControllerIndexWithParent:forKey:] + 319
21 UIKitCore 0x1a6d5e2d4 -[UIViewController initWithCoder:] + 1483
22 UIKitCore 0x1a6c9cabc -[UITabBarController initWithCoder:] + 83
23 UIKitCore 0x1a704adbc -[UIClassSwapper initWithCoder:] + 2367
24 UIFoundation 0x1a68ecbcc UINibDecoderDecodeObjectForValue + 727
25 UIFoundation 0x1a6887fe0 -[UINibDecoder decodeObjectForKey:] + 311
26 UIKitCore 0x1a704eec0 -[UIRuntimeConnection initWithCoder:] + 131
27 UIFoundation 0x1a68ecbcc UINibDecoderDecodeObjectForValue + 727
28 UIFoundation 0x1a68ecdec UINibDecoderDecodeObjectForValue + 1271
29 UIFoundation 0x1a6887fe0 -[UINibDecoder decodeObjectForKey:] + 311
30 UIKitCore 0x1a7049e90 -[NSCoder+ 7241360 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 491
31 UIKitCore 0x1a704ca58 -[UINib instantiateWithOwner:options:] + 1067
32 UIKitCore 0x1a753e9c4 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 283
33 UIKitCore 0x1a753e85c -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 127
34 UIKitCore 0x1a73d0390 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 183
35 UIKitCore 0x1a73d08fc -[UIApplication _loadMainInterfaceFile] + 275
36 UIKitCore 0x1a73cf068 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1003
37 UIKitCore 0x1a6b3f03c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 151
38 UIKitCore 0x1a700ad68 _UIScenePerformActionsWithLifecycleActionMask + 111
39 UIKitCore 0x1a6b3fb70 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 211
40 UIKitCore 0x1a6b3f59c -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 295
41 UIKitCore 0x1a6b3f98c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 755
42 UIKitCore 0x1a6b3f214 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 339
43 UIKitCore 0x1a6b43930 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 195
44 UIKitCore 0x1a6f29604 +[BSAnimationSettings+ 6059524 (UIKit) tryAnimatingWithSettings:actions:completion:] + 855
45 UIKitCore 0x1a7024a0c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 259
46 UIKitCore 0x1a6b4366c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 155
47 UIKitCore 0x1a70248f4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 107
48 UIKitCore 0x1a6b434c4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 391
49 UIKitCore 0x1a69a9ba4 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 639
50 UIKitCore 0x1a69a86a4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 255
51 UIKitCore 0x1a69a98d4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 235
52 UIKitCore 0x1a73cd3fc -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 551
53 UIKitCore 0x1a6f4fe08 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 375
54 FrontBoardServices 0x1a84eaffc -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 439
55 FrontBoardServices 0x1a85115a0 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 115
56 FrontBoardServices 0x1a84f5ebc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 239
57 FrontBoardServices 0x1a8511234 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 343
58 libdispatch.dylib 0x1a2f2833c _dispatch_client_callout + 19
59 libdispatch.dylib 0x1a2f2b0d4 _dispatch_block_invoke_direct + 263
60 FrontBoardServices 0x1a85376c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
61 FrontBoardServices 0x1a8537370 -[FBSSerialQueue _queue_performNextIfPossible] + 431
62 FrontBoardServices 0x1a85378dc -[FBSSerialQueue _performNextFromRunLoopSource] + 31
63 CoreFoundation 0x1a3203af4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
64 CoreFoundation 0x1a3203a48 __CFRunLoopDoSource0 + 83
65 CoreFoundation 0x1a3203198 __CFRunLoopDoSources0 + 195
66 CoreFoundation 0x1a31fdf38 __CFRunLoopRun + 795
67 CoreFoundation 0x1a31fd8f4 CFRunLoopRunSpecific + 479
68 GraphicsServices 0x1ad614604 GSEventRunModal + 163
69 UIKitCore 0x1a73d1358 UIApplicationMain + 1943
70 AppGolf 0x102ec5f30 0x102e6c000 + 368432
71 libdyld.dylib 0x1a30792dc start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001a306edf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001a2f8e930 pthread_kill + 228
2 libsystem_c.dylib 0x00000001a2f1cba4 abort + 104
3 libc++abi.dylib 0x00000001a3041f40 __cxxabiv1::__aligned_malloc_with_fallback+ 65344 (unsigned long) + 0
4 libc++abi.dylib 0x00000001a30338c8 demangling_unexpected_handler+ 6344 () + 0
5 libobjc.A.dylib 0x00000001a2f9cf0c _objc_terminate+ 24332 () + 132
6 libc++abi.dylib 0x00000001a30413cc std::__terminate(void (*)+ 62412 ()) + 20
7 libc++abi.dylib 0x00000001a3041358 std::terminate+ 62296 () + 44
8 libdispatch.dylib 0x00000001a2f28350 _dispatch_client_callout + 40
9 libdispatch.dylib 0x00000001a2f2b0d4 _dispatch_block_invoke_direct + 264
10 FrontBoardServices 0x00000001a85376c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x00000001a8537370 -[FBSSerialQueue _queue_performNextIfPossible] + 432
12 FrontBoardServices 0x00000001a85378dc -[FBSSerialQueue _performNextFromRunLoopSource] + 32
13 CoreFoundation 0x00000001a3203af4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x00000001a3203a48 __CFRunLoopDoSource0 + 84
15 CoreFoundation 0x00000001a3203198 __CFRunLoopDoSources0 + 196
16 CoreFoundation 0x00000001a31fdf38 __CFRunLoopRun + 796
17 CoreFoundation 0x00000001a31fd8f4 CFRunLoopRunSpecific + 480
18 GraphicsServices 0x00000001ad614604 GSEventRunModal + 164
19 UIKitCore 0x00000001a73d1358 UIApplicationMain + 1944
20 AppGolf 0x0000000102ec5f30 0x102e6c000 + 368432
21 libdyld.dylib 0x00000001a30792dc start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001a2f959c0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001a2f959c0 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001a2f959c0 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001a2f959c0 start_wqthread + 0
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001a304c784 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001a304bba8 mach_msg + 76
2 CoreFoundation 0x00000001a3203314 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x00000001a31fe0a0 __CFRunLoopRun + 1156
4 CoreFoundation 0x00000001a31fd8f4 CFRunLoopRunSpecific + 480
5 Foundation 0x00000001a3546b18 -[NSRunLoop+ 31512 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001a35469f0 -[NSRunLoop+ 31216 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x00000001a7477840 -[UIEventFetcher threadMain] + 156
8 Foundation 0x00000001a3680c10 __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001a2f8d8fc _pthread_start + 168
10 libsystem_pthread.dylib 0x00000001a2f959d4 thread_start + 8
Thread 6:
0 libsystem_pthread.dylib 0x00000001a2f959c0 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000016cf91f40 x5: 0x000000016cf924f0 x6: 0x000000000000006e x7: 0x0000000000000500
x8: 0x00000000000005b9 x9: 0x52edbf591e01e407 x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x0000000000000050 x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001e500e808 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000407 x21: 0x0000000103285960 x22: 0x0000000000000000 x23: 0x0000000103285960
x24: 0x0000000000002303 x25: 0x0000000000000001 x26: 0x000000016cf92cc0 x27: 0x0000000000000000
x28: 0x00000001ee0b8000 fp: 0x000000016cf92450 lr: 0x00000001a2f8e930
sp: 0x000000016cf92430 pc: 0x00000001a306edf0 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x102e6c000 - 0x102eeffff AppGolf arm64 <fde6c9562d193c15936a3cccf74edc6e> /var/containers/Bundle/Application/3CB71C90-9FE9-4526-9777-8DDC86269E66/AppGolf.app/AppGolf
0x103204000 - 0x10320ffff libobjc-trampolines.dylib arm64e <7fd5d790e34f3b9e91a253f8e9428e91> /usr/lib/libobjc-trampolines.dylib
0x103214000 - 0x10327bfff dyld arm64e <3d545c044e25313eb748ef45647088f7> /usr/lib/dyld
0x1a2e5a000 - 0x1a2e70fff libsystem_trace.dylib arm64e <a97807ab182135b5bec8f26659c6cc07> /usr/lib/system/libsystem_trace.dylib
0x1a2e71000 - 0x1a2ea4fff libxpc.dylib arm64e <33b9156a9ae13385bd0838552a3f3b7f> /usr/lib/system/libxpc.dylib
Found solution!
I used UISearchDisplayController that was deprecated.
console:
UISearchDisplayController is no longer supported when using this version of iOS. Please migrate your application to UISearchController.
I use Xcode 11 beta and running with iPadOS.
The app works perfectly when running via Xcode, but once it’s disconnected from my Mac and I try to open it on I the iPad the app crashes immediately. What should I do to prevent that? Is it possible that this is a beta bug?
I already try to change the run scheme to release in order to catch the error but the app still worked perfectly fine when it was connected to my Mac, and it still crashes when I try to open it on the iPad.
The crash log:
Incident Identifier: A2B40D37-80CB-44EC-BDF8-31218AE57CB0
CrashReporter Key: 94955e0a5779727fdfd5897c9de1267cd96a2c20
Hardware Model: iPad8,5
Process: ExampleApp [15367]
Path: /private/var/containers/Bundle/Application/3B7A07E6-AA57-435B-BCF9-DBBAD9BC0276/ExampleApp.app/ExampleApp
Identifier: com.matanm.ExampleApp
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.matanm.ExampleApp [6447]
Date/Time: 2019-07-01 19:02:41.8674 +0300
Launch Time: 2019-07-01 19:02:41.8078 +0300
OS Version: iPhone OS 13.0 (17A5508m)
Release Type: Beta
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1b2706dcc __exceptionPreprocess + 224
1 libobjc.A.dylib 0x1b2c27688 objc_exception_throw + 59
2 CoreFoundation 0x1b25f76c4 +[NSException raise:format:] + 111
3 UIFoundation 0x1b9a07b5c UINibDecoderDecodeObjectForValue + 411
4 UIFoundation 0x1b9a07ed0 UINibDecoderDecodeObjectForValue + 1295
5 UIFoundation 0x1b99a2d7c -[UINibDecoder decodeObjectForKey:] + 319
6 UIKitCore 0x1ba9c6b14 -[UIView initWithCoder:] + 671
7 UIFoundation 0x1b9a07c9c UINibDecoderDecodeObjectForValue + 731
8 UIFoundation 0x1b99a2d7c -[UINibDecoder decodeObjectForKey:] + 319
9 UIKitCore 0x1ba1fbbd4 -[UIRuntimeConnection initWithCoder:] + 175
10 UIFoundation 0x1b9a07c9c UINibDecoderDecodeObjectForValue + 731
11 UIFoundation 0x1b9a07ed0 UINibDecoderDecodeObjectForValue + 1295
12 UIFoundation 0x1b99a2d7c -[UINibDecoder decodeObjectForKey:] + 319
13 UIKitCore 0x1ba1f6ad4 -[NSCoder+ 6904532 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 491
14 UIKitCore 0x1ba1f970c -[UINib instantiateWithOwner:options:] + 1115
15 UIKitCore 0x1b9f35e88 -[UIViewController _loadViewFromNibNamed:bundle:] + 367
16 UIKitCore 0x1b9f36930 -[UIViewController loadView] + 179
17 UIKitCore 0x1b9f36c00 -[UIViewController loadViewIfRequired] + 187
18 UIKitCore 0x1b9f372e8 -[UIViewController view] + 31
19 UIKitCore 0x1b9eb2924 -[UINavigationController preferredContentSize] + 171
20 UIKitCore 0x1b9e5b53c -[UIPresentationController preferredContentSizeDidChangeForChildContentContainer:] + 71
21 UIKitCore 0x1b9e57754 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 159
22 UIKitCore 0x1b9e5d688 +[UIPresentationController _scheduleTransition:] + 103
23 UIKitCore 0x1b9e5751c -[UIPresentationController runTransitionForCurrentState] + 1539
24 UIKitCore 0x1b9e54e3c -[UIPresentationController _presentWithAnimationController:interactionController:target:didEndSelector:] + 983
25 UIKitCore 0x1ba598868 -[UIWindow addRootViewControllerViewIfPossible] + 399
26 UIKitCore 0x1ba598df0 -[UIWindow _setHidden:forced:] + 319
27 UIKitCore 0x1ba5a964c -[UIWindow _mainQueue_makeKeyAndVisible] + 51
28 UIKitCore 0x1ba78dd84 -[UIWindowScene _loadWindowWithStoryboardIfNeeded:] + 643
29 UIKitCore 0x1ba78dad4 -[UIWindowScene _readySceneForConnection] + 151
30 UIKitCore 0x1b9ba0d4c +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 959
31 UIKitCore 0x1ba55d5f8 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 991
32 UIKitCore 0x1ba55d988 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 339
33 UIKitCore 0x1ba10d990 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 375
34 FrontBoardServices 0x1b4e17b00 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 451
35 FrontBoardServices 0x1b4e4078c __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.174 + 115
36 FrontBoardServices 0x1b4e22fbc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 239
37 FrontBoardServices 0x1b4e40420 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 343
38 libdispatch.dylib 0x1b2ef0114 _dispatch_client_callout + 19
39 libdispatch.dylib 0x1b2ef2e44 _dispatch_block_invoke_direct + 251
40 FrontBoardServices 0x1b4e681b8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 47
41 FrontBoardServices 0x1b4e67e64 -[FBSSerialQueue _performNext] + 419
42 FrontBoardServices 0x1b4e683e4 -[FBSSerialQueue _performNextFromRunLoopSource] + 51
43 CoreFoundation 0x1b26821f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
44 CoreFoundation 0x1b268217c __CFRunLoopDoSource0 + 91
45 CoreFoundation 0x1b26818dc __CFRunLoopDoSources0 + 183
46 CoreFoundation 0x1b267c7d0 __CFRunLoopRun + 1067
47 CoreFoundation 0x1b267c07c CFRunLoopRunSpecific + 479
48 GraphicsServices 0x1b184c37c GSEventRunModal + 107
49 UIKitCore 0x1ba56174c UIApplicationMain + 1939
50 ExampleApp 0x102cea760 0x102cdc000 + 59232
51 libdyld.dylib 0x1b2be6964 start + 3
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b2d54f04 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001b2f2cc20 pthread_kill + 224
2 libsystem_c.dylib 0x00000001b2dd4af4 abort + 104
3 libc++abi.dylib 0x00000001b2ed13c8 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001b2ed15c0 demangling_unexpected_handler+ 5568 () + 0
5 libobjc.A.dylib 0x00000001b2c27968 _objc_terminate+ 22888 () + 124
6 libc++abi.dylib 0x00000001b2ede634 std::__terminate(void (*)+ 58932 ()) + 20
7 libc++abi.dylib 0x00000001b2ede5c0 std::terminate+ 58816 () + 44
8 libdispatch.dylib 0x00000001b2ef0128 _dispatch_client_callout + 40
9 libdispatch.dylib 0x00000001b2ef2e44 _dispatch_block_invoke_direct + 252
10 FrontBoardServices 0x00000001b4e681b8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
11 FrontBoardServices 0x00000001b4e67e64 -[FBSSerialQueue _performNext] + 420
12 FrontBoardServices 0x00000001b4e683e4 -[FBSSerialQueue _performNextFromRunLoopSource] + 52
13 CoreFoundation 0x00000001b26821f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
14 CoreFoundation 0x00000001b268217c __CFRunLoopDoSource0 + 92
15 CoreFoundation 0x00000001b26818dc __CFRunLoopDoSources0 + 184
16 CoreFoundation 0x00000001b267c7d0 __CFRunLoopRun + 1068
17 CoreFoundation 0x00000001b267c07c CFRunLoopRunSpecific + 480
18 GraphicsServices 0x00000001b184c37c GSEventRunModal + 108
19 UIKitCore 0x00000001ba56174c UIApplicationMain + 1940
20 ExampleApp 0x0000000102cea760 0x102cdc000 + 59232
21 libdyld.dylib 0x00000001b2be6964 start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001b2f33c3c start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001b2f33c3c start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00000001b2f33c3c start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00000001b2f33c3c start_wqthread + 0
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001b2d32bc0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b2d31fdc mach_msg + 76
2 CoreFoundation 0x00000001b2681a78 __CFRunLoopServiceMachPort + 220
3 CoreFoundation 0x00000001b267c938 __CFRunLoopRun + 1428
4 CoreFoundation 0x00000001b267c07c CFRunLoopRunSpecific + 480
5 Foundation 0x00000001b21ea774 -[NSRunLoop+ 34676 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001b21ea64c -[NSRunLoop+ 34380 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x00000001ba5f97d4 -[UIEventFetcher threadMain] + 156
8 Foundation 0x00000001b21e9404 -[NSThread main] + 40
9 Foundation 0x00000001b2323488 __NSThread__start__ + 852
10 libsystem_pthread.dylib 0x00000001b2f2bc4c _pthread_start + 132
11 libsystem_pthread.dylib 0x00000001b2f33c50 thread_start + 8
Thread 6:
0 libsystem_pthread.dylib 0x00000001b2f33c3c start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000002809fcdb7
x4: 0x00000001b2ee17a8 x5: 0x000000016d1224f0 x6: 0x000000000000006e x7: 0x0000000000000500
x8: 0x0000000000000800 x9: 0x0000000000000407 x10: 0x0000000000000002 x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x000000000000001e x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x00000001dca022f0 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000103015840 x21: 0x0000000000000407 x22: 0x0000000103015920 x23: 0x0000000103015920
x24: 0x0000000000001f03 x25: 0x0000000000000000 x26: 0x000000016d122cb0 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000016d122450 lr: 0x00000001b2f2cc20
sp: 0x000000016d122420 pc: 0x00000001b2d54f04 cpsr: 0x00000000
esr: 0x56000080 Address size fault