I'm very new to the App Store Validation process, and I'm getting a crashes in their testing that do not happen in Simulators or real device testing. This seems to be common story.
Here's the relevant part of the latest crash log from Apple:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 WordsBy2 0x0000000102f757b0 0x102f68000 + 55216
1 WordsBy2 0x0000000102f75698 0x102f68000 + 54936
2 WordsBy2 0x0000000102f79cbc 0x102f68000 + 72892
3 WordsBy2 0x0000000102f753fc 0x102f68000 + 54268
4 UIKitCore 0x0000000182eeb35c -[UIClassSwapper initWithCoder:] + 2196
5 UIFoundation 0x0000000189618edc UINibDecoderDecodeObjectForValue + 696
6 UIFoundation 0x00000001895a5854 -[UINibDecoder decodeObjectForKey:] + 308
7 UIKitCore 0x0000000182eef544 -[UIRuntimeConnection initWithCoder:] + 128
8 UIFoundation 0x0000000189618edc UINibDecoderDecodeObjectForValue + 696
9 UIFoundation 0x00000001896190f4 UINibDecoderDecodeObjectForValue + 1232
10 UIFoundation 0x00000001895a5854 -[UINibDecoder decodeObjectForKey:] + 308
11 UIKitCore 0x0000000182eea4fc -[NSCoder+ 7791868 (UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 488
12 UIKitCore 0x0000000182eeced4 -[UINib instantiateWithOwner:options:] + 1064
13 UIKitCore 0x000000018341c948 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 280
14 UIKitCore 0x000000018341c7e4 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 124
15 UIKitCore 0x000000018350c704 -[UIWindowScene _loadWindowWithStoryboardIfNeeded:] + 96
16 UIKitCore 0x000000018350c670 -[UIWindowScene _readySceneForConnection] + 148
17 UIKitCore 0x00000001827c69d0 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1012
18 UIKitCore 0x00000001832abca0 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1032
19 UIKitCore 0x00000001832ac044 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 328
20 UIKitCore 0x0000000182debab8 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
21 FrontBoardServices 0x000000018fd69704 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 404
22 FrontBoardServices 0x000000018fd91130 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 100
23 FrontBoardServices 0x000000018fd76e60 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
24 FrontBoardServices 0x000000018fd90e44 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 312
25 libdispatch.dylib 0x0000000180678280 _dispatch_client_callout + 16
26 libdispatch.dylib 0x000000018061d930 _dispatch_block_invoke_direct$VARIANT$mp + 224
27 FrontBoardServices 0x000000018fdb5e60 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
28 FrontBoardServices 0x000000018fdb5b28 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 404
29 FrontBoardServices 0x000000018fdb5ffc -[FBSSerialQueue _performNextFromRunLoopSource] + 28
30 CoreFoundation 0x00000001809bfbf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
31 CoreFoundation 0x00000001809bfaf0 __CFRunLoopDoSource0 + 204
32 CoreFoundation 0x00000001809bee38 __CFRunLoopDoSources0 + 256
33 CoreFoundation 0x00000001809b93e0 __CFRunLoopRun + 776
34 CoreFoundation 0x00000001809b8ba0 CFRunLoopRunSpecific + 572
35 GraphicsServices 0x0000000197721598 GSEventRunModal + 160
36 UIKitCore 0x00000001832aa2f4 -[UIApplication _run] + 1052
37 UIKitCore 0x00000001832af874 UIApplicationMain + 164
38 libswiftUIKit.dylib 0x0000000194139b54 UIApplicationMain+ 80724 (_:_:_:_:) + 100
39 WordsBy2 0x0000000102f6c9ec 0x102f68000 + 18924
40 libdyld.dylib 0x0000000180697568 start + 4
This a fairly simple question, but I want to be sure... the last line corresponds to the start() method in my initialization process, and I presume the the + 4 is the fourth line of code in that code block? And I also presume that that includes commented lines in my original code?
If so, and that line sets a property of an optional instantiated class, then I assume a crash at this line would indicate that there was a problem with that object, but that the object would not appear in the crash log, since it wasn't one of its methods that was called. Correct?
Related
I met a crash and I have no idea how to solve it. It is a SIGSEGV crash, and here is the last code stack:
0
libobjc.A.dylib
_objc_msgSend + 44
1
CoreFoundation
-[__NSSetI containsObject:] + 156
2
UIKitCore
-[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:] + 3532
3
UIKitCore
-[UIInputResponderController _reloadInputViewsForResponder:] + 160
4
UIKitCore
-[UIInputResponderController forceReloadInputViews] + 220
5
UIKitCore
___43-[_UIRemoteKeyboards reloadForSnapshotting]_block_invoke + 148
6
UIKitCore
+[UIInputResponderController performOnControllers:] + 476
7
UIKitCore
-[_UIRemoteKeyboards setIsSnapshotting:] + 108
8
UIKitCore
-[UITextEffectsWindow _willSnapshot] + 124
9
UIKitCore
-[UIApplication _beginSnapshotSessionForScene:withSnapshotBlock:] + 776
10
UIKitCore
___65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke + 132
11
UIKitCore
-[UIScene _enableOverrideSettingsForActions:] + 60
12
UIKitCore
-[UIScene _performSystemSnapshotWithActions:] + 120
13
UIKitCore
-[UIApplication _performSnapshotsWithAction:forScene:completion:] + 440
14
UIKitCore
___98-[_UISceneSnapshotBSActionsHandler _respondToActions:forFBSScene:inUIScene:fromTransitionContext:]_block_invoke_3 + 168
15
UIKitCore
___98-[_UISceneSnapshotBSActionsHandler _respondToActions:forFBSScene:inUIScene:fromTransitionContext:]_block_invoke_2 + 468
16
UIKitCore
-[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 664
17
UIKitCore
-[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220
18
UIKitCore
-[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464
19
FrontBoardServices
-[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 456
20
FrontBoardServices
___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 124
21
FrontBoardServices
-[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
22
FrontBoardServices
___94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 368
23
libdispatch.dylib
__dispatch_client_callout + 16
24
libdispatch.dylib
__dispatch_block_invoke_direct$VARIANT$mp + 224
25
FrontBoardServices
___FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
26
FrontBoardServices
-[FBSSerialQueue _targetQueue_performNextIfPossible] + 404
27
FrontBoardServices
-[FBSSerialQueue _performNextFromRunLoopSource] + 28
28
CoreFoundation
___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
29
CoreFoundation
___CFRunLoopDoSource0 + 204
30
CoreFoundation
___CFRunLoopDoSources0 + 356
31
CoreFoundation
___CFRunLoopRun + 776
32
CoreFoundation
_CFRunLoopRunSpecific + 572
33
GraphicsServices
_GSEventRunModal + 160
34
UIKitCore
-[UIApplication _run] + 1052
35
UIKitCore
_UIApplicationMain + 164
36
LetvIphoneClient
main (main.m:29)
37
libdyld.dylib
_start + 4
Other information:
this crash mostly appear at the launching of the App.
read the code stack, the crash probably takes place when user's keyboard is using.
I can't solve this crash because I don't have enough clues and the code stack doesn't have any my App code, only system code.
Any clue about this crash is appreciate. Thank you.
What's interesting thing is, this crash takes place on time everyday, just 5pm to 8pm(Beijing time). We can not see any one crash takes place at other time in a day. A weird crash!
I uploaded an application to AppStore, and it was working fine.
app version 5.0.2
Xcode version 12.5.1
I tried to update the application recently. The app is running fine with the emulator on iOS 15 or 14.5, but we received a 14.8 crash report. We also tested the physical devices on 14.7. It crashes.
app version 5.0.3
Xcode version 12.5.1
Therefore we tried to test the 5.0.2 version on 14.7 (which is the same code), it also crashes. The codebase is basically the same as the one currently on appstore, but it won't run.
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b9481334 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001d6f05a9c pthread_kill + 272 (pthread.c:1582)
2 libsystem_c.dylib 0x000000019465db84 abort + 124 (abort.c:118)
3 Flutter 0x0000000102b18ed0 0x10282c000 + 3067600
4 Flutter 0x0000000102b19000 0x10282c000 + 3067904
5 Flutter 0x0000000102d12508 0x10282c000 + 5137672
6 Flutter 0x0000000102b7b844 0x10282c000 + 3471428
7 Flutter 0x000000010283fd20 0x10282c000 + 81184
8 Flutter 0x0000000102856410 0x10282c000 + 173072
9 Flutter 0x000000010285624c 0x10282c000 + 172620
10 UIKitCore 0x000000018d88da70 -[UINib instantiateWithOwner:options:] + 2288 (UINib.m:389)
11 UIKitCore 0x000000018de0cb18 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 284 (UIStoryboard.m:233)
12 UIKitCore 0x000000018de0c9b0 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 128 (UIStoryboard.m:212)
13 UIKitCore 0x000000018dc8c7dc -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 184 (UIApplication.m:4429)
14 UIKitCore 0x000000018dc8cd14 -[UIApplication _loadMainInterfaceFile] + 280 (UIApplication.m:0)
15 UIKitCore 0x000000018dc8b468 -[UIApplication _runWithMainScene:transitionContext:completion:] + 996 (UIApplication.m:4171)
16 UIKitCore 0x000000018d2df1a4 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152 (_UISceneLifecycleMultiplexer.m:436)
17 UIKitCore 0x000000018d848458 _UIScenePerformActionsWithLifecycleActionMask + 104 (_UISceneLifecycleState.m:109)
18 UIKitCore 0x000000018d2dfd3c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224 (_UISceneLifecycleMultiplexer.m:549)
19 UIKitCore 0x000000018d2df744 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 300 (_UISceneLifecycleMultiplexer.m:498)
20 UIKitCore 0x000000018d2dfb4c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 768 (_UISceneLifecycleMultiplexer.m:548)
21 UIKitCore 0x000000018d2df388 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 (_UISceneLifecycleMultiplexer.m:454)
22 UIKitCore 0x000000018d2e78cc __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 196 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:72)
23 UIKitCore 0x000000018d755e84 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 (BSAnimationSettings+UIKit.m:50)
24 UIKitCore 0x000000018d861268 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276 (_UISceneSettingsDiffAction.m:23)
25 UIKitCore 0x000000018d2e75c4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:57)
26 UIKitCore 0x000000018d10f4ac __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 776 (UIScene.m:1419)
27 UIKitCore 0x000000018d10de2c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 (UIScene.m:1140)
28 UIKitCore 0x000000018d10f0d4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 248 (UIScene.m:1386)
29 UIKitCore 0x000000018dc89700 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572 (UIApplication.m:3697)
30 UIKitCore 0x000000018d77f4e4 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388 (UIApplicationSceneClientAgent.m:45)
31 FrontBoardServices 0x000000019a8685d8 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440 (FBSScene.m:435)
32 FrontBoardServices 0x000000019a893d44 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.200 + 128 (FBSWorkspaceScenesClient.m:365)
33 FrontBoardServices 0x000000019a8776a4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:355)
34 FrontBoardServices 0x000000019a893a0c __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372 (FBSWorkspaceScenesClient.m:364)
35 libdispatch.dylib 0x000000018ae8381c _dispatch_client_callout + 20 (object.m:559)
36 libdispatch.dylib 0x000000018ae8730c _dispatch_block_invoke_direct + 268 (queue.c:468)
37 FrontBoardServices 0x000000019a8bbfa0 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:184)
38 FrontBoardServices 0x000000019a8bbc30 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 448 (FBSSerialQueue.m:227)
39 FrontBoardServices 0x000000019a8bc184 -[FBSSerialQueue _performNextFromRunLoopSource] + 32 (FBSSerialQueue.m:258)
40 CoreFoundation 0x000000018b210990 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1967)
41 CoreFoundation 0x000000018b21088c __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2011)
42 CoreFoundation 0x000000018b20fb90 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2048)
43 CoreFoundation 0x000000018b209b70 __CFRunLoopRun + 820 (CFRunLoop.c:2925)
44 CoreFoundation 0x000000018b209308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
45 GraphicsServices 0x00000001a288c734 GSEventRunModal + 164 (GSEvent.c:2259)
46 UIKitCore 0x000000018dc8775c -[UIApplication _run] + 1072 (UIApplication.m:3269)
47 UIKitCore 0x000000018dc8cfcc UIApplicationMain + 168 (UIApplication.m:4740)
48 Runner 0x000000010251f7e0 main + 64 (AppDelegate.swift:5)
49 libdyld.dylib 0x000000018aec5cf8 start + 4
As the title says, my app immediately crashes when run if there is no internet connection/airplane mode is on. The thing is, when I set breakpoints it doesn't even make it to any of my code. Not a single viewDidLoad or even AppDelegate function gets called, and the error message doesn't seem like something that would be related to not having a network connection:
2019-03-21 10:30:20.193955-0500 AppName[98957:977030] *** Terminating
app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Could not load NIB in bundle: 'NSBundle
<bundleFilePath> (loaded)' with name
'BYZ-38-t0r-view-8bC-Xf-vdC''
(I obviously inserted some fake values into their for privacy)
Call stack:
*** First throw call stack:
(
0 CoreFoundation 0x00000001036cb1bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000102c69735 objc_exception_throw + 48
2 CoreFoundation 0x00000001036cb015 +[NSException raise:format:] + 197
3 UIKitCore 0x00000001088edd94 -[UINib instantiateWithOwner:options:] + 497
4 UIKitCore 0x0000000108661452 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
5 UIKitCore 0x0000000108661ddc -[UIViewController loadView] + 177
6 UIKitCore 0x00000001086620ee -[UIViewController loadViewIfRequired] + 175
7 UIKitCore 0x0000000108662940 -[UIViewController view] + 27
8 UIKitCore 0x000000010858134c -[UIPresentationController __sizeClassPair] + 62
9 UIKitCore 0x0000000108675428 -[UIViewController _presentViewController:withAnimationController:completion:] + 2300
10 UIKitCore 0x000000010867874b __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 99
11 UIKitCore 0x0000000108678dd9 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 511
12 UIKitCore 0x00000001086786b1 -[UIViewController _presentViewController:animated:completion:] + 173
13 UIKitCore 0x00000001086789f0 -[UIViewController presentViewController:animated:completion:] + 150
14 AppName 0x0000000100f1125e $SSo16UIViewControllerC12DataScoutProE27showDismissiveAlertMesssage7messageySS_tF + 254
15 AppName 0x0000000100e58a97 $S12AppName18HomeViewControllerC10commonInit33_90D4AB13D5DB6EAFA2D0742F81F552BALLyyF + 727
16 AppName 0x0000000100e58462 $S12AppName18HomeViewControllerC5coderACSgSo7NSCoderC_tcfc + 146
17 AppName 0x0000000100e584df $S12AppName18HomeViewControllerC5coderACSgSo7NSCoderC_tcfcTo + 47
18 UIKitCore 0x00000001088ec166 -[UIClassSwapper initWithCoder:] + 246
19 UIFoundation 0x000000010c8f35ad UINibDecoderDecodeObjectForValue + 749
20 UIFoundation 0x000000010c8f32b3 -[UINibDecoder decodeObjectForKey:] + 251
21 UIKitCore 0x00000001088f07b8 -[UIRuntimeConnection initWithCoder:] + 178
22 UIFoundation 0x000000010c8f35ad UINibDecoderDecodeObjectForValue + 749
23 UIFoundation 0x000000010c8f3854 UINibDecoderDecodeObjectForValue + 1428
24 UIFoundation 0x000000010c8f32b3 -[UINibDecoder decodeObjectForKey:] + 251
25 UIKitCore 0x00000001088ee067 -[UINib instantiateWithOwner:options:] + 1220
26 UIKitCore 0x0000000108e228b6 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
27 UIKitCore 0x0000000108c8103a -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 112
28 UIKitCore 0x0000000108c8150c -[UIApplication _loadMainInterfaceFile] + 272
29 UIKitCore 0x0000000108c7fb25 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1357
30 UIKitCore 0x000000010849e4e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
31 UIKitCore 0x00000001084a729c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
32 UIKitCore 0x000000010849e126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
33 UIKitCore 0x000000010849eae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
34 UIKitCore 0x000000010849ccb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795
35 UIKitCore 0x000000010849c95f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
36 UIKitCore 0x00000001084a1a90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584
37 UIKitCore 0x00000001084a280e _performActionsWithDelayForTransitionContext + 100
38 UIKitCore 0x00000001084a17ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221
39 UIKitCore 0x00000001084a693a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
40 UIKitCore 0x0000000108c7e44e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
41 UIKitCore 0x0000000108822d09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
42 FrontBoardServices 0x000000010f55e2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
43 FrontBoardServices 0x000000010f569443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
44 FrontBoardServices 0x000000010f568b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
45 libdispatch.dylib 0x000000010548a602 _dispatch_client_callout + 8
46 libdispatch.dylib 0x000000010548db78 _dispatch_block_invoke_direct + 301
47 FrontBoardServices 0x000000010f59dba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
48 FrontBoardServices 0x000000010f59d860 -[FBSSerialQueue _performNext] + 457
49 FrontBoardServices 0x000000010f59de40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
50 CoreFoundation 0x0000000103630721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
51 CoreFoundation 0x000000010362ff93 __CFRunLoopDoSources0 + 243
52 CoreFoundation 0x000000010362a63f __CFRunLoopRun + 1263
53 CoreFoundation 0x0000000103629e11 CFRunLoopRunSpecific + 625
54 GraphicsServices 0x000000010c5b71dd GSEventRunModal + 62
55 UIKitCore 0x0000000108c8181d UIApplicationMain + 140
56 AppName 0x0000000100e8e794 main + 68
57 libdyld.dylib 0x0000000105500575 start + 1
)
I really have no clue what it could be. Tried setting a symbolic breakpoint at [UIViewController _loadViewFromNibNamed:bundle:] but that didn't really give any useful insight. Hope someone can help. I should also mention the only thing I'm doing in AppDelegate is instantiating firebase.
Helpful guy over at reddit figured it out for me. Didn't realize but there was an init() function on my initial view controller that the last guy made which checked the internet connection and redirected to a different page if there wasn't one.
I am using fetchRequestTemplate with NSPredicate to get data. I get "Thread 1: signal SIGABRT" on the following bit of code:
fetchRequest.predicate = NSPredicate(format: "userID == %#", userID)
Here is the full description of the problem:
2019-01-18 16:36:54.084567+0300 Chat[62769:8009479] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can't modify a named fetch request in an immutable model.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000107e811bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000106e73735 objc_exception_throw + 48
2 CoreData 0x00000001077c7217 -[NSFetchRequest(_NSInternalMethods) _throwIfNotEditable] + 71
3 CoreData 0x00000001077c725e -[NSFetchRequest setPredicate:] + 30
4 Chat 0x00000001064d2db7 $S4Chat7MessageC11getMessages3for2inSayACGSgSS_So22NSManagedObjectContextCtFZ
+ 871
5 Chat 0x00000001064d2430 $S4Chat14StorageManagerC12readMessages3forSayAA12MessageModelCGSS_tF + 336
6 Chat 0x00000001064abfa9 $S4Chat20CommunicationManagerCACycfc + 2553
7 Chat 0x00000001064a8130 $S4Chat20CommunicationManagerCACycfC + 64
8 Chat 0x00000001064a80dc globalinit_33_C5FFB30340A1F300E36AFF644D48A8DA_func0 + 28
9 libdispatch.dylib 0x000000010a30a602 _dispatch_client_callout + 8
10 libdispatch.dylib 0x000000010a30c0c4 _dispatch_once_callout + 66
11 libswiftCore.dylib 0x0000000108676ea9 swift_once + 25
12 Chat 0x00000001064a81b4 $S4Chat20CommunicationManagerC06sharedbC0ACvau + 36
13 Chat 0x00000001064d599f $S4Chat11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF
+ 159
14 Chat 0x00000001064d5ac4 $S4Chat11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo
+ 228
15 UIKitCore 0x000000010bd02bde -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280
16 UIKitCore 0x000000010bd045cb -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3979
17 UIKitCore 0x000000010bd09c2f -[UIApplication _runWithMainScene:transitionContext:completion:] + 1623
18 UIKitCore 0x000000010b5284e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke
+ 866
19 UIKitCore 0x000000010b53129c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
20 UIKitCore 0x000000010b528126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
21 UIKitCore 0x000000010b528ae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
22 UIKitCore 0x000000010b526cb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke
+ 795
23 UIKitCore 0x000000010b52695f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
24 UIKitCore 0x000000010b52ba90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke
+ 584
25 UIKitCore 0x000000010b52c80e _performActionsWithDelayForTransitionContext + 100
26 UIKitCore 0x000000010b52b7ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]
+ 221
27 UIKitCore 0x000000010b53093a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
28 UIKitCore 0x000000010bd0844e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
29 UIKitCore 0x000000010b8acd09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
30 FrontBoardServices 0x00000001143e82da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
31 FrontBoardServices 0x00000001143f3443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
32 FrontBoardServices 0x00000001143f2b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
33 libdispatch.dylib 0x000000010a30a602 _dispatch_client_callout + 8
34 libdispatch.dylib 0x000000010a30db78 _dispatch_block_invoke_direct + 301
35 FrontBoardServices 0x0000000114427ba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
36 FrontBoardServices 0x0000000114427860 -[FBSSerialQueue _performNext] + 457
37 FrontBoardServices 0x0000000114427e40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
38 CoreFoundation 0x0000000107de6721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
39 CoreFoundation 0x0000000107de5f93 __CFRunLoopDoSources0 + 243
40 CoreFoundation 0x0000000107de063f __CFRunLoopRun + 1263
41 CoreFoundation 0x0000000107ddfe11 CFRunLoopRunSpecific + 625
42 GraphicsServices 0x00000001114271dd GSEventRunModal + 62
43 UIKitCore 0x000000010bd0b81d UIApplicationMain + 140
44 Chat 0x00000001064d7037 main + 71
45 libdyld.dylib 0x000000010a380575 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
EDIT:
Xcode 10 beta 6 fix the problem
I'm updating my app for ios 12 with the new xcode 10, but the Fabric framework makes the app crash at start.
I only run the code and the app crash on the launch screen.
In my AppDelegate:
#import <Fabric/Fabric.h>
#import <Answers/Answers.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Fabric with:#[[Answers class]]];
return YES;
}
And this is the log that appear:
+[NSRecursiveLock dictionary]: unrecognized selector sent to class 0x233a30580
(lldb)
I also added this writing as mentioned in the guide:
And this is in the AppDelegate.m
And this is the crash log
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0
Crashed: 0 libsystem_kernel.dylib 0x00000001fa545104
pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001fa5c4a00 pthread_kill$VARIANT$armv81 + 296 2
libsystem_c.dylib 0x00000001fa49cd78 abort + 140 3
libc++abi.dylib 0x00000001f9b64f78 __cxa_bad_cast + 0 4
libc++abi.dylib 0x00000001f9b65120
default_unexpected_handler+ 8480 () + 0 5 libobjc.A.dylib
0x00000001f9b7de48 _objc_terminate+ 28232 () + 124 6
libc++abi.dylib 0x00000001f9b710fc
std::__terminate(void (*)+ 57596 ()) + 16 7 libc++abi.dylib
0x00000001f9b71188 std::terminate+ 57736 () + 84 8
libdispatch.dylib 0x00000001fa3e8498
_dispatch_client_callout + 36 9 libdispatch.dylib 0x00000001fa3b8260 _dispatch_once_callout + 28 10 Reflex
0x0000000100b5280c +[Fabric sharedSDK] + 112 11 Reflex
0x0000000100b52984 __15+[Fabric with:]_block_invoke + 76 12
libdispatch.dylib 0x00000001fa3e8484
_dispatch_client_callout + 16 13 libdispatch.dylib 0x00000001fa3b8260 _dispatch_once_callout + 28 14 Reflex
0x0000000100b52934 +[Fabric with:] + 224 15 Reflex
0x00000001009f3600 -[AppDelegate
application:didFinishLaunchingWithOptions:] + 1439232
(AppDelegate.m:64) 16 UIKitCore
0x0000000226f51564 -[UIApplication
_handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412 17 UIKitCore 0x0000000226f52ccc -[UIApplication
_callInitializationDelegatesForMainScene:transitionContext:] + 3340 18 UIKitCore 0x0000000226f58718 -[UIApplication
_runWithMainScene:transitionContext:completion:] + 1552 19 UIKitCore 0x000000022777f6dc __111-[__UICanvasLifecycleMonitor_Compatability
_scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke
+ 784 20 UIKitCore 0x000000022777bc88 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 21 UIKitCore 0x000000022777f358
-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240 22 UIKitCore 0x000000022777fcf8
-[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1076 23 UIKitCore
0x000000022773ef20 __82-[_UIApplicationCanvas
_transitionLifecycleStateWithTransitionContext:completion:]_block_invoke
+ 772 24 UIKitCore 0x000000022773ebcc -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 25 UIKitCore 0x0000000227782168
__125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke
+ 220 26 UIKitCore 0x0000000227782c58 _performActionsWithDelayForTransitionContext + 112 27 UIKitCore 0x0000000227782020 -[_UICanvasLifecycleSettingsDiffAction
performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]
+ 248 28 UIKitCore 0x000000022777b334 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 29 UIKitCore 0x0000000226f56c10
-[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 30
UIKitCore 0x0000000226f883c8
-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 31 FrontBoardServices
0x00000001fd3db890 -[FBSSceneImpl
_didCreateWithTransitionContext:completion:] + 444 32 FrontBoardServices 0x00000001fd3e6658 __56-[FBSWorkspace
client:handleCreateScene:withCompletion:]_block_invoke_2 + 260 33
FrontBoardServices 0x00000001fd3e5d50 __40-[FBSWorkspace
_performDelegateCallOut:]_block_invoke + 64 34 libdispatch.dylib 0x00000001fa3e8484 _dispatch_client_callout + 16 35
libdispatch.dylib 0x00000001fa3bf3f0
_dispatch_block_invoke_direct$VARIANT$armv81 + 216 36 FrontBoardServices 0x00000001fd41a640
__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40 37 FrontBoardServices 0x00000001fd41a2cc -[FBSSerialQueue
_performNext] + 416 38 FrontBoardServices 0x00000001fd41a8e8 -[FBSSerialQueue _performNextFromRunLoopSource] +
56 39 CoreFoundation 0x00000001fa93e5b8
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 40 CoreFoundation 0x00000001fa93e538 __CFRunLoopDoSource0
+ 88 41 CoreFoundation 0x00000001fa93de1c __CFRunLoopDoSources0 + 176 42 CoreFoundation 0x00000001fa938ce8 __CFRunLoopRun + 1040 43 CoreFoundation
0x00000001fa9385b8 CFRunLoopRunSpecific + 436 44 GraphicsServices
0x00000001fcba8584 GSEventRunModal + 100 45 UIKitCore
0x0000000226f5a4c4 UIApplicationMain + 212 46 Reflex
0x0000000100a663d0 main + 1909712 (main.m:14) 47 libdyld.dylib
0x00000001fa3f8c0c start + 4
Can anyone help me?
Thanks in advance
There is a bug with Fabric and Xcode 10 beta 5 that prevents build on real device but you can build on simulator, Upgrade to Xcode 10 beta 6 and this bug should be fixed