Swift : Crash when zoom out on map with cluster - swift

I have a view with a map and a lot of pin. I have clustered the pin and when i zoom in to reveal the single annotation all works.
When I instead try to zoom out the app crashes.
I have this error message but i'm not so pro to understand the problem.
i searched on google and inside StackOverflow but without success.
I have already seen:
iOS : App crashes when zooming out a map
Can anyone help me?
Thank you in advance for all the answers you can give me.
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSDictionaryM setObject:forKey:]: key cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f98b1ab __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010a909f41 objc_exception_throw + 48
2 CoreFoundatio 0x000000010f9caf9c _CFThrowFormattedException + 194
3 CoreFoundation 0x000000010f89f918 -[__NSDictionaryM setObject:forKey:] + 952
4 MapKit 0x000000010be8007a -[MKNewAnnotationContainerView _existingClusterViewsForClusterID:] + 174
5 MapKit 0x000000010be7f79c -[MKNewAnnotationContainerView addAnnotationView:allowAnimation:] + 173
6 MapKit 0x000000010bdf99f0 -[MKMapView addAnnotationRepresentation:allowAnimation:] + 727
7 MapKit 0x000000010beb6420 -[MKAnnotationManager _addRepresentationForAnnotation:] + 838
8 MapKit 0x000000010beb45b2 -[MKAnnotationManager addRepresentationsForAnnotations:] + 494
9 MapKit 0x000000010bdf1661 -[MKMapView annotationContainer:requestAddingClusterForAnnotationViews:] + 675
10 MapKit 0x000000010be80260 -[MKNewAnnotationContainerView _updateClusterableAnnotationViews:withID:] + 461
11 CoreFoundation 0x000000010f90fea2 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 226
12 MapKit 0x000000010be8125e -[MKNewAnnotationContainerView updateAnnotationViewsForReason:] + 299
13 MapKit 0x000000010bf7b17a -[MKAnnotationContainerView finishAddingAnnotationViews] + 29
14 MapKit 0x000000010bdfa315 -[MKMapView annotationManager:didAddAnnotationRepresentations:] + 53
15 MapKit 0x000000010beb5737 -[MKAnnotationManager updateVisibleAnnotations] + 1876
16 MapKit 0x000000010bde81b2 -[MKMapView _didChangeRegionMidstream:] + 223
17 MapKit 0x000000010bded5a1 -[MKMapView mapLayer:didChangeRegionAnimated:] + 79
18 VectorKit 0x0000000113e09125 -[VKMapView map:didChangeRegionAnimated:] + 122
19 VectorKit 0x0000000113e84e3b __58-[VKMapCameraController zoom:withPoint:completionHandler:]_block_invoke.145 + 62
20 VectorKit 0x0000000113e3b97d -[VKAnimation stopAnimation:] + 109
21 VectorKit 0x0000000113e3bd65 -[VKTimedAnimation stopAnimation:] + 47
22 VectorKit 0x0000000113e3be47 -[VKTimedAnimation onTimerFired:] + 47
23 VectorKit 0x0000000113db5e46 _ZN2md16AnimationManager12onTimerFiredEd + 298
24 VectorKit 0x000000011405bff1 _ZN2md9MapEngine11layoutSceneEdb + 85
25 VectorKit 0x000000011405bf85 -[_MapEngineRenderQueueSource renderQueueForTimestamp:] + 27
26 VectorKit 0x000000011411d10c -[MDDisplayLayer drawToTexture:withTimestamp:completionHandler:prepareHandler:] + 139
27 VectorKit 0x000000011427222f __33-[GGLOpenGLESLayer onTimerFired:]_block_invoke + 87
28 VectorKit 0x0000000114279ad7 _ZN3ggl10OESContext17performWhileBoundEU13block_pointerFvvE + 163
29 VectorKit 0x0000000114271ff7 -[GGLOpenGLESLayer onTimerFired:] + 111
30 VectorKit 0x000000011405f031 _ZN2md9MapEngine11renderSceneEdNSt3__18functionIFvvEEE + 93
31 VectorKit 0x000000011405d8cc _ZN2md9MapEngine18onRenderTimerFiredEd + 158
32 VectorKit 0x00000001142750f8 _ZN3ggl11DisplayLink12onTimerFiredEd + 32
33 VectorKit 0x0000000114274ffa -[_GGLDisplayLinkTarget displayLinkFired:] + 81
34 QuartzCore 0x000000010c268778 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 684
35 QuartzCore 0x000000010c3a4970 _ZL22display_timer_callbackP12__CFMachPortPvlS1_ + 248
36 CoreFoundation 0x000000010f91a9c9 __CFMachPortPerform + 169
37 CoreFoundation 0x000000010f91a909 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
38 CoreFoundation 0x000000010f91a871 __CFRunLoopDoSource1 + 465
39 CoreFoundation 0x000000010f912654 __CFRunLoopRun + 2596
40 CoreFoundation 0x000000010f9119b9 CFRunLoopRunSpecific + 409
41 GraphicsServices 0x0000000115b389c6 GSEventRunModal + 62
42 UIKit 0x000000010c523948 UIApplicationMain + 159
43 atriptoitaly 0x0000000109f3dfd7 main + 55
44 libdyld.dylib 0x0000000110ab7d81 start + 1) libc++abi.dylib: terminating with uncaught exception of type NSException

Well, looking for a solution i found this in Apple Developer Forum
https://forums.developer.apple.com/message/271061#271061
I hope it will be useful to someone

Related

crash (iOs16) when present VNDocumentCameraViewController

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 !!!!

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

Terminating app due to uncaught exception 'NSInternalInconsistencyException' reason: 'PushKit'

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23baa1ee __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23ba9f68 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff25614de9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 PushKit 0x00007fff2af1896f +[PKPushRegistry _checkIfNecessaryVoIPFrameworksAreLinked] + 251
5 PushKit 0x00007fff2af18cdc -[PKPushRegistry _registerForPushType:] + 287
6 PushKit 0x00007fff2af1975f __38-[PKPushRegistry setDesiredPushTypes:]_block_invoke + 240
7 libdispatch.dylib 0x000000010b470d6c _dispatch_client_callout + 8
8 libdispatch.dylib 0x000000010b47f9fd _dispatch_lane_barrier_sync_invoke_and_complete + 132
9 PushKit 0x00007fff2af1964e -[PKPushRegistry setDesiredPushTypes:] + 108
10 Office Phone 0x0000000109752139 $s12Office_Phone18MainViewControllerC5coderACSgSo7NSCoderC_tcfc + 2857
11 Office Phone 0x00000001097524e3 $s12Office_Phone18MainViewControllerC5coderACSgSo7NSCoderC_tcfcTo + 51
12 UIKitCore 0x00007fff471e7350 -[UIClassSwapper initWithCoder:] + 2427
13 UIFoundation 0x00007fff46a37cd6 UINibDecoderDecodeObjectForValue + 744
14 UIFoundation 0x00007fff46a379e1 -[UINibDecoder decodeObjectForKey:] + 251
15 UIKitCore 0x00007fff471eb657 -[UIRuntimeConnection initWithCoder:] + 125
16 UIFoundation 0x00007fff46a37cd6 UINibDecoderDecodeObjectForValue + 744
17 UIFoundation 0x00007fff46a37f7d UINibDecoderDecodeObjectForValue + 1423
18 UIFoundation 0x00007fff46a379e1 -[UINibDecoder decodeObjectForKey:] + 251
19 UIKitCore 0x00007fff471e641e -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 450
20 UIKitCore 0x00007fff471e918d -[UINib instantiateWithOwner:options:] + 1145
21 UIKitCore 0x00007fff476db470 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 279
22 Office Phone 0x000000010976d750 $s12Office_Phone11AppDelegateC21selectVCToBedisplayed2vcySo16UIViewControllerCSg_tF + 464
23 Office Phone 0x000000010976d38f $s12Office_Phone11AppDelegateC22setUpInitialRootScreenyyF + 511
24 Office Phone 0x00000001097708ec $s12Office_Phone11AppDelegateC22requestForVerifyDeviceyyFy9Alamofire12DataResponseVyypGcfU_ + 2828
25 Alamofire 0x0000000109b72591 $s9Alamofire11DataRequestC8response5queue0D10Serializer17completionHandlerACXDSo012OS_dispatch_E0CSg_xyAA0B8ResponseVy16SerializedObjectQzGctAA0bkF8ProtocolRzlFyycfU_yycfU_ + 369
26 Alamofire 0x0000000109b2c22d $sIeg_IeyB_TR + 45
27 libdispatch.dylib 0x000000010b46fdf8 _dispatch_call_block_and_release + 12
28 libdispatch.dylib 0x000000010b470d6c _dispatch_client_callout + 8
29 libdispatch.dylib 0x000000010b47ee24 _dispatch_main_queue_callback_4CF + 1500
30 CoreFoundation 0x00007fff23b0ce49 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
31 CoreFoundation 0x00007fff23b07aa9 __CFRunLoopRun + 2329
32 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438
33 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65
34 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621
35 Office Phone 0x000000010977320b main + 75
36 libdyld.dylib 0x00007fff516ecd29 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
You need to import CallKit Framework in your project Framework,Libraries, and Embeded Content section.

Swift - hierarchy constraint issues and debugging

I'm new to swift and am finding debugging to be particularly difficult. I"m using RubyMotion if that is relevant. After I log out a user and try to log back in I receive the following log:
2017-04-20 13:56:54.810 nav[8614:3232848] *** Assertion failure in -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.6.21/NSLayoutConstraint_UIKitAdditions.m:649
2017-04-20 13:56:54.927 nav[8614:3232848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102ab5d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010141421e objc_exception_throw + 48
2 CoreFoundation 0x0000000102ab9e42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001038d466d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 UIKit 0x0000000105a4d57b __120-[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:]_block_invoke_2 + 206
5 UIKit 0x0000000105a4d417 -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 418
6 UIKit 0x0000000105a4d7e8 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 30
7 UIKit 0x0000000105a4d8fa -[UIView(UIConstraintBasedLayout) _tryToAddConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 221
8 UIKit 0x0000000105a4dc0e __50-[UIView(UIConstraintBasedLayout) addConstraints:]_block_invoke + 208
9 Foundation 0x000000010385a3b0 -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x0000000105a4db2f -[UIView(UIConstraintBasedLayout) addConstraints:] + 277
11 nav 0x00000001000d2ae2 __unnamed_64 + 98
12 nav 0x00000001004b495c vm_dispatch + 1372
13 nav 0x00000001004b8511 rb_scope__strain__ + 1313
14 nav 0x00000001009d9135 rb_vm_dispatch + 7221
15 nav 0x00000001004b495c vm_dispatch + 1372
16 nav 0x00000001004b7a3e rb_scope__initialize__ + 238
17 nav 0x00000001009d9135 rb_vm_dispatch + 7221
18 nav 0x000000010092ec57 rb_class_new_instance0 + 855
19 nav 0x00000001009d86e6 rb_vm_dispatch + 4582
20 nav 0x000000010076c1ec vm_dispatch + 1372
21 nav 0x0000000100780bc3 rb_scope__main_layout__ + 275
22 nav 0x00000001009d9135 rb_vm_dispatch + 7221
23 nav 0x000000010076c1ec vm_dispatch + 1372
24 nav 0x0000000100777955 rb_scope__layout__ + 133
25 nav 0x00000001009d9135 rb_vm_dispatch + 7221
26 nav 0x000000010076c1ec vm_dispatch + 1372
27 nav 0x0000000100778496 rb_scope__viewDidLoad__ + 534
28 nav 0x00000001007784ed __unnamed_67 + 13
29 UIKit 0x000000010522aa3d -[UIViewController loadViewIfRequired] + 1258
30 UIKit 0x0000000105231062 -[UIViewController __viewWillAppear:] + 118
31 UIKit 0x000000010525c1d3 -[UINavigationController _startCustomTransition:] + 1290
32 UIKit 0x000000010526ce48 -[UINavigationController _startDeferredTransitionIfNeeded:] + 697
33 UIKit 0x000000010526dfdb -[UINavigationController __viewWillLayoutSubviews] + 58
34 UIKit 0x0000000105464dd7 -[UILayoutContainerView layoutSubviews] + 223
35 UIKit 0x000000010514dab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
36 QuartzCore 0x0000000104b4ebf8 -[CALayer layoutSublayers] + 146
37 QuartzCore 0x0000000104b42440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
38 QuartzCore 0x0000000104b422be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
39 QuartzCore 0x0000000104ad0318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
40 QuartzCore 0x0000000104afd3ff _ZN2CA11Transaction6commitEv + 475
41 QuartzCore 0x0000000104afdd6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
42 CoreFoundation 0x0000000102a5a267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
43 CoreFoundation 0x0000000102a5a1d7 __CFRunLoopDoObservers + 391
44 CoreFoundation 0x0000000102a3ef8e __CFRunLoopRun + 1198
45 CoreFoundation 0x0000000102a3e884 CFRunLoopRunSpecific + 420
46 GraphicsServices 0x0000000107e57a6f GSEventRunModal + 161
47 UIKit 0x0000000105088c68 UIApplicationMain + 159
48 nav 0x00000001000a9fd2 main + 146
49 libdyld.dylib 0x0000000106f1b68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
What I'm struggling with is trying to find out where the error is in my code from the error logs.
Perhaps I'm spoiled but in ruby I'm used to a filename and line number being given where the error has been caused - is this something I can find out from this log?
Thanks in advance.

good methods to debug iOS exception

i want to debug my exception at my app,i have read
Debugging -[NSCFDictionary setObject:forKey:]: attempt to insert nil value add so on,but these methods is happen at i am running my app,so i can use add an Exception breakpoint, click the Add (+) button at the bottom of the breakpoints list and click Add Exception Breakpoint ,and use gcc command line怂but my question is if user give me a crash report,the bug not easy happen,how to solve it ,for example:
Application received signal SIGSEGV
(null)
(
0 CoreFoundation 0x3120e2bb + 186
1 libobjc.A.dylib 0x38f2b97f objc_exception_throw + 30
2 CoreFoundation 0x3120e1c5 + 0
3 myshine 0x001f9f51 myshine + 1503057
4 libsystem_c.dylib 0x393a9e8b _sigtramp + 34
5 myshine 0x000ac985 myshine + 137605
6 myshine 0x000ac35d myshine + 136029
7 CoreFoundation 0x311ab7cf + 74
8 CoreFoundation 0x311b1623 + 74
9 CoreFoundation 0x311ab507 + 326
10 CFNetwork 0x30f0fa8b + 98
11 CFNetwork 0x30f0ec71 + 36
12 CFNetwork 0x30f11365 + 44
13 CFNetwork 0x30f110f9 + 88
14 CFNetwork 0x30f114ff + 34
15 CFNetwork 0x30ed0ce1 + 324
16 CFNetwork 0x30ed1661 + 156
17 CFNetwork 0x30f0ec71 + 36
18 CFNetwork 0x30f11365 + 44
19 CoreFoundation 0x311e3683 + 14
20 CoreFoundation 0x311e2ee9 + 212
21 CoreFoundation 0x311e1cb7 + 646
22 CoreFoundation 0x31154ebd CFRunLoopRunSpecific + 356
23 CoreFoundation 0x311b39bb CFRunLoopRun + 98
24 myshine 0x000b20ef myshine + 159983
25 Foundation 0x31b24e85 + 972
26 libsystem_c.dylib 0x39382311 + 308
27 libsystem_c.dylib 0x393821d8 thread_start + 8
)
and
*** -[__NSArrayM objectAtIndex:]: index 121 beyond bounds [0 .. 23]
(
0 CoreFoundation 0x311963ff + 186
1 libobjc.A.dylib 0x38e87963 objc_exception_throw + 30
2 CoreFoundation 0x310e1ef9 + 164
3 myshine 0x001720b1 myshine + 1372337
4 UIKit 0x33090087 + 70
5 UIKit 0x3309003b + 30
6 UIKit 0x33090015 + 44
7 UIKit 0x3308f8cb + 502
8 UIKit 0x3308fdb9 + 488
9 UIKit 0x32fb85f9 + 524
10 UIKit 0x32fa58e1 + 380
11 UIKit 0x32fa51ef + 6198
12 GraphicsServices 0x34cbc5f7 + 590
13 GraphicsServices 0x34cbc227 + 34
14 CoreFoundation 0x3116b3e7 + 34
15 CoreFoundation 0x3116b38b + 138
16 CoreFoundation 0x3116a20f + 1382
17 CoreFoundation 0x310dd23d CFRunLoopRunSpecific + 356
18 CoreFoundation 0x310dd0c9 CFRunLoopRunInMode + 104
19 GraphicsServices 0x34cbb33b GSEventRunModal + 74
20 UIKit 0x32ff92b9 UIApplicationMain + 1120
21 myshine 0x00026ec7 myshine + 16071
22 myshine 0x00025660 myshine + 9824
)
through i know NSArray beyond bounds,but my app have many many NSArray,and they are user report,can you give me some easy methods to find the location?
From your question what I understood is you want the method which has produced the crash in your app. May be this can help you Symbolicating iPhone App Crash Reports.