crash (iOs16) when present VNDocumentCameraViewController - swift

With iOS 16, I have fatal error when I launch VNDocumentCameraViewController
(iPad or iPhone)
On my project, with older operating system (like iOS 14, iOS 15) I haven't got this error.
info.plist --> NSCameraUsageDescription is present with description
let myScanViewController = VNDocumentCameraViewController()
myScanViewController.delegate = self
self.present(myScanViewController, animated: false)
I's happen just after self.present and I haven't got the camera screen.
I do not know where to check and where to add a breakpoint
debug message :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
I check the backtraces but any idea about the problem.
thank you for your help.
0 CoreFoundation 0x18add6248 __exceptionPreprocess + 164
1 libobjc.A.dylib 0x1841a3a68 objc_exception_throw + 60
2 CoreFoundation 0x18af7a6d4 -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x18af77a74 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x18add1828 -[__NSPlaceholderArray initWithObjects:count:] + 252
5 CoreFoundation 0x18add2b1c +[NSArray arrayWithObjects:count:] + 40
6 UIKitCore 0x18d387f5c +[UIImageSymbolConfiguration configurationWithHierarchicalColor:] + 124
7 UIKitCore 0x18d7ffd60 -[_UIImageCUIVectorGlyphContent _automaticSymbolConfiguration] + 104
8 UIKitCore 0x18cff6434 -[UIImageView _symbolConfigurationForImage:] + 72
9 UIKitCore 0x18cfc77cc -[UIImageView _resolvedImageFromImage:forTrait:] + 96
10 UIKitCore 0x18cf941fc -[UIImageView _resolvedImageFromImage:] + 152
11 UIKitCore 0x18cf92d5c -[UIButtonLegacyVisualProvider intrinsicSizeWithinSize:] + 132
12 UIKitCore 0x18cf92cb4 -[UIButton _intrinsicSizeWithinSize:] + 52
13 UIKitCore 0x18cfcd04c -[UIView(UIConstraintBasedLayout) intrinsicContentSize] + 120
14 UIKitCore 0x18cfcd598 -[UIButton intrinsicContentSize] + 148
15 UIKitCore 0x18cfccbe0 -[UIView _generateContentSizeConstraints] + 52
16 UIKitCore 0x18cfb74a8 -[UIView _updateContentSizeConstraints] + 244
17 UIKitCore 0x18d04b4a4 -[UIView(AdditionalLayoutSupport) _updateSystemConstraints] + 88
18 UIKitCore 0x18d0c9700 -[UIButton updateConstraints] + 72
19 UIKitCore 0x18d04b378 -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 348
20 UIKitCore 0x18d04b110 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 764
21 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
22 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
23 UIKitCore 0x18d04b02c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 536
24 CoreAutoLayout 0x1a72a7e90 -[NSISEngine withBehaviors:performModifications:] + 84
25 UIKitCore 0x18d04ae08 __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 104
26 UIKitCore 0x18cfed6e8 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 96
27 UIKitCore 0x18cfed350 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 172
28 UIKitCore 0x18cfecf50 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 388
29 UIKitCore 0x18d02cdec -[UIView(Hierarchy) layoutBelowIfNeeded] + 1064
30 DocumentCamera 0x1edf3c6c4 -[ICDocCamViewController initializeUserInterface] + 656
31 DocumentCamera 0x1edf3baa4 -[ICDocCamViewController viewDidLoad] + 1044
32 UIKitCore 0x18d2dd330 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 84
33 UIKitCore 0x18cf750a8 -[UIViewController loadViewIfRequired] + 712
34 UIKitCore 0x18d23c1bc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 124
35 UIKitCore 0x18d1025ec -[UINavigationController _startTransition:fromViewController:toViewController:] + 196
36 UIKitCore 0x18d101aa4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 608
37 UIKitCore 0x18d1010f4 -[UINavigationController __viewWillLayoutSubviews] + 96
38 UIKitCore 0x18d101058 -[UILayoutContainerView layoutSubviews] + 172
39 UIKitCore 0x18cf5ecec -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
40 QuartzCore 0x18c43b4e8 CA::Layer::layout_if_needed(CA::Transaction*) + 500
41 QuartzCore 0x18c44eb9c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
42 QuartzCore 0x18c460098 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 456
43 QuartzCore 0x18c4973c4 CA::Transaction::commit() + 652
44 QuartzCore 0x18c47e408 CA::Transaction::flush_as_runloop_observer(bool) + 88
45 CoreFoundation 0x18ae5e070 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
46 CoreFoundation 0x18ade6690 __CFRunLoopDoObservers + 532
47 CoreFoundation 0x18ae47f8c __CFRunLoopRun + 1048
48 CoreFoundation 0x18ae4d1e4 CFRunLoopRunSpecific + 612
49 GraphicsServices 0x1c3c6d368 GSEventRunModal + 164
50 UIKitCore 0x18d2fcd88 -[UIApplication _run] + 888
51 UIKitCore 0x18d2fc9ec UIApplicationMain + 340
52 digitrame 0x1019c8d88 main + 64
53 dyld 0x1a9171948 start + 2504

After deconstruct all the projet....the package SumUp (install via pod) is causing the crash....the backtraces is really not explicit about this fatal error !!!!

Related

-[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40

I'm trying to get a particle effect across my whole background in storyboards using a SpriteKit view that I added but this keeps making my app crash. I tried to add it by code but this aswell crashed my app and I don't really know what to make out of the error message as I can't find much about it on the internet...
I linked my SpriteKit view with my 'MyParticle.sks' file
Full error message:
2021-06-23 14:23:28.897788+0200 Project-drink[31447:7030317] Metal API Validation Enabled
2021-06-23 14:23:29.348537+0200 Project-drink[31447:7030317] -[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40
2021-06-23 14:23:29.356132+0200 Project-drink[31447:7030317] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SKEmitterNode scaleMode]: unrecognized selector sent to instance 0x6000007b9a40'
*** First throw call stack:`0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 CoreFoundation 0x00007fff20431d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 UIKitCore 0x00007fff246f60f1 -[UIResponder doesNotRecognizeSelector:] + 292
4 CoreFoundation 0x00007fff204274cf ___forwarding___ + 1455
5 CoreFoundation 0x00007fff204297a8 _CF_forwarding_prep_0 + 120
6 SpriteKit 0x00007fff3b47b1e4 -[SKView presentScene:] + 268
7 SpriteKit 0x00007fff3b47c350 -[SKView initWithCoder:] + 1123
8 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
9 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
10 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
11 UIKitCore 0x00007fff24be5ead -[UIView initWithCoder:] + 1390
12 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
13 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
14 UIKitCore 0x00007fff242ba159 -[UIRuntimeConnection initWithCoder:] + 160
15 UIFoundation 0x00007fff23a13ebe UINibDecoderDecodeObjectForValue + 707
16 UIFoundation 0x00007fff23a14148 UINibDecoderDecodeObjectForValue + 1357
17 UIFoundation 0x00007fff23a13bee -[UINibDecoder decodeObjectForKey:] + 244
18 UIKitCore 0x00007fff242b4f4a -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 443
19 UIKitCore 0x00007fff242b7a53 -[UINib instantiateWithOwner:options:] + 1122
20 UIKitCore 0x00007fff23f84921 -[UIViewController loadView] + 668
21 UIKitCore 0x00007fff23f84cbc -[UIViewController loadViewIfRequired] + 172
22 UIKitCore 0x00007fff23eba03a -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
23 UIKitCore 0x00007fff23eba326 -[UINavigationController _startTransition:fromViewController:toViewController:] + 154
24 UIKitCore 0x00007fff23ebb3b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 876
25 UIKitCore 0x00007fff23ebc734 -[UINavigationController __viewWillLayoutSubviews] + 150
26 UIKitCore 0x00007fff23e9d04c -[UILayoutContainerView layoutSubviews] + 217
27 UIKitCore 0x00007fff24c18c90 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2946
28 QuartzCore 0x00007fff27a055b8 -[CALayer layoutSublayers] + 258
29 QuartzCore 0x00007fff27a0be3f _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 611
30 QuartzCore 0x00007fff27a17c53 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
31 QuartzCore 0x00007fff27951f26 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 656
32 QuartzCore 0x00007fff279893b9 _ZN2CA11Transaction6commitEv + 713
33 UIKitCore 0x00007fff246debb8 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 81
34 CoreFoundation 0x00007fff20390c74 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
35 CoreFoundation 0x00007fff20390070 __CFRunLoopDoBlocks + 437
36 CoreFoundation 0x00007fff2038aa08 __CFRunLoopRun + 892
37 CoreFoundation 0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
38 GraphicsServices 0x00007fff2b874d85 GSEventRunModal + 139
39 UIKitCore 0x00007fff246c14df -[UIApplication _run] + 912
40 UIKitCore 0x00007fff246c639c UIApplicationMain + 101
41 libswiftUIKit.dylib 0x00007fff53fcbf42 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
42 Project-drink 0x000000010f314c4a $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122
43 Project-drink 0x000000010f314bbe $s13Project_drink11AppDelegateC5$mainyyFZ + 46
44 Project-drink 0x000000010f314ce9 main + 41
45 libdyld.dylib 0x00007fff2025abbd start + 1
)

macCatalyst crash on UIScene in macOS 11 (Big Sur) [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a macCatalyst app that works perfectly on macOS 10.14, however on upgrading to macOS 11 (Big Sur) both I and my users are complaining that the app crashes on launch. I get an error message "Parameter was not of class UIScene" - do macCatalyst apps now require the use of scenes?
On further inspection, I see the following:
2020-11-28 01:48:40.327810+0000 AppName [13691:435322] *** Assertion failure in -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:], _UISceneMacHelperUtilities.m:83
2020-11-28 01:48:40.336334+0000 AppName[13691:435322] [General] An uncaught exception was raised
2020-11-28 01:48:40.336423+0000 AppName[13691:435322] [General] Parameter was not of class UIScene.
2020-11-28 01:48:40.336545+0000 AppName[13691:435322] [General] (
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
2020-11-28 01:48:40.337802+0000 AppName[13691:435322] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff204ae6af __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff201e63c9 objc_exception_throw + 48
2 CoreFoundation 0x00007fff204d7512 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff212906c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff44a7b2c6 -[_UISceneMacHelperUtilities sceneIdentifierForUIScene:] + 195
5 UIKitMacHelper 0x00007fff34045f74 __46-[UINSApplicationDelegate _setupKeyWindowSync]_block_invoke + 393
6 Foundation 0x00007fff21192d6b -[__NSObserver _doit:] + 287
7 CoreFoundation 0x00007fff20429fdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8 CoreFoundation 0x00007fff204c589b ___CFXRegistrationPost_block_invoke + 49
9 CoreFoundation 0x00007fff204c580f _CFXRegistrationPost + 454
10 CoreFoundation 0x00007fff203fabce _CFXNotificationPost + 723
11 Foundation 0x00007fff21166abe -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 UIKitCore 0x00007fff44376779 -[UIWindow _makeKeyWindowIgnoringOldKeyWindow:] + 567
13 AppName 0x00000001013fe0c0 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtF + 1520
14 AppName 0x00000001013feaa6 $s25AppName13SceneDelegateC5scene_13willConnectTo7optionsySo7UISceneC_So0K7SessionCSo0K17ConnectionOptionsCtFTo + 118
15 UIKitCore 0x00007fff44221a31 +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:] + 1463
16 UIKitCore 0x00007fff4421ffb1 -[UIApplication _connectUISceneFromFBSScene:transitionContext:] + 1109
17 UIKitCore 0x00007fff4421ecfe -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 299
18 UIKitCore 0x00007fff4421eb49 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
19 FrontBoardServices 0x00007fff317e7312 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 391
20 FrontBoardServices 0x00007fff318045df __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.176 + 102
21 FrontBoardServices 0x00007fff317d60c1 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
22 FrontBoardServices 0x00007fff318042b7 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 354
23 libdispatch.dylib 0x00000001040c50b0 _dispatch_client_callout + 8
24 libdispatch.dylib 0x00000001040c8927 _dispatch_block_invoke_direct + 286
25 FrontBoardServices 0x00007fff317d5fd8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
26 FrontBoardServices 0x00007fff3181e1c3 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 433
27 FrontBoardServices 0x00007fff317d5fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 22
28 CoreFoundation 0x00007fff204349fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29 CoreFoundation 0x00007fff20434964 __CFRunLoopDoSource0 + 180
30 CoreFoundation 0x00007fff204346df __CFRunLoopDoSources0 + 248
31 CoreFoundation 0x00007fff20433111 __CFRunLoopRun + 890
32 CoreFoundation 0x00007fff204326be CFRunLoopRunSpecific + 563
33 HIToolbox 0x00007fff2869efd0 RunCurrentEventLoopInMode + 292
34 HIToolbox 0x00007fff2869edcc ReceiveNextEventCommon + 709
35 HIToolbox 0x00007fff2869eaef _BlockUntilNextEventMatchingListInModeWithFilter + 64
36 AppKit 0x00007fff22c4bf85 _DPSNextEvent + 883
37 AppKit 0x00007fff22c4a74b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1366
38 AppKit 0x00007fff22c3cbda -[NSApplication run] + 586
39 AppKit 0x00007fff22c10f31 NSApplicationMain + 816
40 AppKit 0x00007fff22f0744d _NSApplicationMainWithInfoDictionary + 16
41 UIKitMacHelper 0x00007fff3403332e UINSApplicationMain + 1418
42 UIKitCore 0x00007fff44202e30 UIApplicationMain + 144
43 AppName 0x00000001014da40b main + 75
44 libdyld.dylib 0x00007fff20357631 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Parameter was not of class UIScene.'
terminating with uncaught exception of type NSException

I am facing an issue to Google Sign in IN IOS 13.1

At the time for calling this (GIDSignIn.sharedInstance().signIn()) is Showing error ("reason: 'presentingViewController must be set.')
Full Error below
2019-10-25 12:12:31.060880+0530[7575:70886] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'presentingViewController must be set.'
* First throw call stack:
(
0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23baa02c +[NSException raise:format:]
+ 188
3 LiveVideo 0x000000010b2bb7e4 -[GIDSignIn signInWithOptions:]
+ 123
4 LiveVideo 0x000000010b2bb1b2 -[GIDSignIn signIn] + 64
5 LiveVideo 0x000000010b1c9390 $s9LiveVideo21ProfileViewControllerC12googleSignUpyyypF + 272
6 LiveVideo 0x000000010b1c9400 $s9LiveVideo21ProfileViewControllerC12googleSignUpyyypFTo + 80
7 UIKitCore 0x00007fff4757a082 -[UIApplication sendAction:to:from:forEvent:]
+ 83
8 UIKitCore 0x00007fff46f608e5 -[UIControl sendAction:to:forEvent:]
+ 223
9 UIKitCore 0x00007fff46f60c2f -[UIControl _sendActionsForEvents:withEvent:]
+ 398
10 UIKitCore 0x00007fff46f5fb8e -[UIControl touchesEnded:withEvent:]
+ 481
11 UIKitCore 0x00007fff475b4a31 -[UIWindow _sendTouchesForEvent:]
+ 2604
12 UIKitCore 0x00007fff475b6338 -[UIWindow sendEvent:]
+ 4596
13 UIKitCore 0x00007fff47591693 -[UIApplication sendEvent:]
+ 356
14 UIKitCore 0x00007fff47611e5a __dispatchPreprocessedEventFromEventQueue + 6847
15 UIKitCore 0x00007fff47614920 __handleEventQueueInternal + 5980
16 CoreFoundation 0x00007fff23b0d271 _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 17
17 CoreFoundation 0x00007fff23b0d19c __CFRunLoopDoSource0 + 76
18 CoreFoundation 0x00007fff23b0c974 __CFRunLoopDoSources0 + 180
19 CoreFoundation 0x00007fff23b0767f __CFRunLoopRun + 1263
20 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438
21 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65
22 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621
23 LiveVideo 0x000000010b2b25ab main + 75
24 libdyld.dylib 0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Please add the time of assigning Delegate.
GIDSignIn.sharedInstance().presentingViewController = self

Xcode project throws NSUnknownKeyException after starting project on Version 10.1

I have an Xcode project on my older Mac that I finished building (Xcode version 9.4.1). There it workes fine and it is ready for the upload in the AppStore. Because My Mac can't run macOS mojave I borrowed another Mac with the latest Xcode Version (10.1) when I run the project there I get the following exception:
2019-03-03 11:21:20.941643+0100 Schoolcheck_Schüler[6018:110054] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2019-03-03 11:21:21.052628+0100 Schoolcheck_Schüler[6018:110054] Unknown class _TtC20Schoolcheck_Schüler12ChooseSchool in Interface Builder file.
2019-03-03 11:21:21.086624+0100 Schoolcheck_Schüler[6018:110054] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fbab841cf20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key LabelSchoolName.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000110e761bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000110414735 objc_exception_throw + 48
2 CoreFoundation 0x0000000110e75d29 -[NSException raise] + 9
3 Foundation 0x000000010fe3fde4 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKitCore 0x0000000116708292 -[UIViewController setValue:forKey:] + 87
5 UIKitCore 0x000000011699f573 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x0000000110e61cfd -[NSArray makeObjectsPerformSelector:] + 317
7 UIKitCore 0x000000011699c2b9 -[UINib instantiateWithOwner:options:] + 1814
8 UIKitCore 0x000000011670f452 -[UIViewController _loadViewFromNibNamed:bundle:] + 383
9 UIKitCore 0x000000011670fddc -[UIViewController loadView] + 177
10 UIKitCore 0x00000001167100ee -[UIViewController loadViewIfRequired] + 175
11 UIKitCore 0x0000000116710940 -[UIViewController view] + 27
12 UIKitCore 0x0000000116d67c53 -[UIWindow addRootViewControllerViewIfPossible] + 122
13 UIKitCore 0x0000000116d6836e -[UIWindow _setHidden:forced:] + 294
14 UIKitCore 0x0000000116d7b5c0 -[UIWindow makeKeyAndVisible] + 42
15 UIKitCore 0x0000000116d28833 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4595
16 UIKitCore 0x0000000116d2dc2f -[UIApplication _runWithMainScene:transitionContext:completion:] + 1623
17 UIKitCore 0x000000011654c4e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
18 UIKitCore 0x000000011655529c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
19 UIKitCore 0x000000011654c126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
20 UIKitCore 0x000000011654cae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
21 UIKitCore 0x000000011654acb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795
22 UIKitCore 0x000000011654a95f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
23 UIKitCore 0x000000011654fa90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584
24 UIKitCore 0x000000011655080e _performActionsWithDelayForTransitionContext + 100
25 UIKitCore 0x000000011654f7ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221
26 UIKitCore 0x000000011655493a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
27 UIKitCore 0x0000000116d2c44e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
28 UIKitCore 0x00000001168d0d09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
29 FrontBoardServices 0x000000011d8dd2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
30 FrontBoardServices 0x000000011d8e8443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
31 FrontBoardServices 0x000000011d8e7b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
32 libdispatch.dylib 0x00000001143e3602 _dispatch_client_callout + 8
33 libdispatch.dylib 0x00000001143e6b78 _dispatch_block_invoke_direct + 301
34 FrontBoardServices 0x000000011d91cba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
35 FrontBoardServices 0x000000011d91c860 -[FBSSerialQueue _performNext] + 457
36 FrontBoardServices 0x000000011d91ce40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
37 CoreFoundation 0x0000000110ddb721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
38 CoreFoundation 0x0000000110ddaf93 __CFRunLoopDoSources0 + 243
39 CoreFoundation 0x0000000110dd563f __CFRunLoopRun + 1263
40 CoreFoundation 0x0000000110dd4e11 CFRunLoopRunSpecific + 625
41 GraphicsServices 0x000000011a9361dd GSEventRunModal + 62
42 UIKitCore 0x0000000116d2f81d UIApplicationMain + 140
43 Schoolcheck_SchuÃàler 0x000000010f95f494 main + 68
44 libdyld.dylib 0x0000000114459575 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I ran the project on my old mac on my external harddrive and it worked fine. After that I tried running the project on the newer mac on the external harddrive but it did't work.
I checked all classes and every class is connected right.
I also deleted the connection of the outlets and reconnected them. It chanched nothing.
Thank you in advance,
Manuel
Based on your crash log. There's a good chance that the IBOutLet named LabelSchoolName been removed from your code. You could look at the UIViewController refer to it and re-add.

FIRMessaging client not setup

I've search for some other question/solutions here but can't fix this issue in my App. I can't figure out what is the issue. It was working properly.
When I run my app on Actual Device or on Simulator it crashes on the splash screen. Here is the crash log.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'FIRMessaging client not setup.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010cfd71bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010c0f9735 objc_exception_throw + 48
2 CoreFoundation 0x000000010cfd6f42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000109abc940 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
4 Tarfeeh 0x0000000106e7ee9c -[FIRMessaging connectWithCompletion:] + 556
5 Tarfeeh 0x0000000106dcb573 $S7Tarfeeh11AppDelegateC12connectToFcmyyF + 579
6 Tarfeeh 0x0000000106cd900f $S7Tarfeeh11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 2431
7 Tarfeeh 0x0000000106cd97f4 $S7Tarfeeh11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 228
8 UIKitCore 0x000000011290ebde -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280
9 UIKitCore 0x00000001129105cb -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3979
10 UIKitCore 0x0000000112915c2f -[UIApplication _runWithMainScene:transitionContext:completion:] + 1623
11 UIKitCore 0x00000001121344e9 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
12 UIKitCore 0x000000011213d29c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
13 UIKitCore 0x0000000112134126 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233
14 UIKitCore 0x0000000112134ae0 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085
15 UIKitCore 0x0000000112132cb5 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795
16 UIKitCore 0x000000011213295f -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435
17 UIKitCore 0x0000000112137a90 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584
18 UIKitCore 0x000000011213880e _performActionsWithDelayForTransitionContext + 100
19 UIKitCore 0x00000001121377ef -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221
20 UIKitCore 0x000000011213c93a -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
21 UIKitCore 0x000000011291444e -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
22 UIKitCore 0x00000001124b8d09 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357
23 FrontBoardServices 0x00000001183da2da -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448
24 FrontBoardServices 0x00000001183e5443 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271
25 FrontBoardServices 0x00000001183e4b3a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53
26 libdispatch.dylib 0x000000010f016602 _dispatch_client_callout + 8
27 libdispatch.dylib 0x000000010f019b78 _dispatch_block_invoke_direct + 301
28 FrontBoardServices 0x0000000118419ba8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
29 FrontBoardServices 0x0000000118419860 -[FBSSerialQueue _performNext] + 457
30 FrontBoardServices 0x0000000118419e40 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
31 CoreFoundation 0x000000010cf3c721 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 CoreFoundation 0x000000010cf3bf93 __CFRunLoopDoSources0 + 243
33 CoreFoundation 0x000000010cf3663f __CFRunLoopRun + 1263
34 CoreFoundation 0x000000010cf35e11 CFRunLoopRunSpecific + 625
35 GraphicsServices 0x00000001154a61dd GSEventRunModal + 62
36 UIKitCore 0x000000011291781d UIApplicationMain + 140
37 Tarfeeh 0x0000000106cdab44 main + 68
38 libdyld.dylib 0x000000010f08c575 start + 1
39 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I just updated my podfile and it stopped working. I can't revert back to old version.
Add FirebaseApp.configure() in Your AppDelegate when starting application.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
}