libc++abi.dylib: terminating with uncaught exception of type NSException running emulator for Ionic 4 app

孤人 提交于 2020-04-30 08:47:29

问题


I have an Ionic 4 app that was working fine until I installed cordova firebase analytics plugin. After uninstalling that plugin I had to remove the ios and android platform then re-add. The project build successfully inside of Visual Studio Code. I then attempt to run the emulator in xCode and I get the following error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x60000361e820'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   CoreFoundation                      0x00007fff23c75c4c ___forwarding___ + 1436
4   CoreFoundation                      0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
5   app   Name                          0x00000001024f8943 -[CDVViewController viewDidLoad] + 227
6   app   Name                          0x000000010233c783 -[MainViewController viewDidLoad] + 51
7   UIKitCore                           0x00007fff47a0ef01 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83
8   UIKitCore                           0x00007fff47a13e5a -[UIViewController loadViewIfRequired] + 1084
9   UIKitCore                           0x00007fff47a14277 -[UIViewController view] + 27
10  UIKitCore                           0x00007fff480ca3cf -[UIWindow addRootViewControllerViewIfPossible] + 150
11  UIKitCore                           0x00007fff480c9ac0 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] + 232
12  UIKitCore                           0x00007fff480cab43 -[UIWindow _setHidden:forced:] + 362
13  UIKitCore                           0x00007fff480ddef1 -[UIWindow _mainQueue_makeKeyAndVisible] + 42
14  app   Name                          0x00000001024ef2bf -[CDVAppDelegate application:didFinishLaunchingWithOptions:] + 703
15  app   Name                          0x000000010233c4fb -[AppDelegate application:didFinishLaunchingWithOptions:] + 187
16  app   Name                          0x00000001023a3608 -[AppDelegate(MCPlugin) application:customDidFinishLaunchingWithOptions:] + 120
17  UIKitCore                           0x00007fff48089ad8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
18  UIKitCore                           0x00007fff4808b460 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3980
19  UIKitCore                           0x00007fff48090f05 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1226
20  UIKitCore                           0x00007fff477c576d -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
21  UIKitCore                           0x00007fff47cb44c1 _UIScenePerformActionsWithLifecycleActionMask + 83
22  UIKitCore                           0x00007fff477c627f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
23  UIKitCore                           0x00007fff477c5c8e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
24  UIKitCore                           0x00007fff477c60ac -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
25  UIKitCore                           0x00007fff477c5941 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
26  UIKitCore                           0x00007fff477c9f3f __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178
27  UIKitCore                           0x00007fff47bd8c83 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 865
28  UIKitCore                           0x00007fff47cd2dff _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
29  UIKitCore                           0x00007fff477c9c5a __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
30  UIKitCore                           0x00007fff47cd2d02 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
31  UIKitCore                           0x00007fff477c9ac8 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
32  UIKitCore                           0x00007fff476206e7 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
33  UIKitCore                           0x00007fff4761f26c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
34  UIKitCore                           0x00007fff47620411 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
35  UIKitCore                           0x00007fff4808f599 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 535
36  UIKitCore                           0x00007fff47bfa7f5 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
37  FrontBoardServices                  0x00007fff365d6165 -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442
38  FrontBoardServices                  0x00007fff365fc4d8 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
39  FrontBoardServices                  0x00007fff365e0c45 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
40  FrontBoardServices                  0x00007fff365fc169 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
41  libdispatch.dylib                   0x0000000102e2cd48 _dispatch_client_callout + 8
42  libdispatch.dylib                   0x0000000102e2fcb9 _dispatch_block_invoke_direct + 300
43  FrontBoardServices                  0x00007fff3662237e __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30
44  FrontBoardServices                  0x00007fff3662206c -[FBSSerialQueue _queue_performNextIfPossible] + 441
45  FrontBoardServices                  0x00007fff3662257b -[FBSSerialQueue _performNextFromRunLoopSource] + 22
46  CoreFoundation                      0x00007fff23bd4471 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
47  CoreFoundation                      0x00007fff23bd439c __CFRunLoopDoSource0 + 76
48  CoreFoundation                      0x00007fff23bd3b74 __CFRunLoopDoSources0 + 180
49  CoreFoundation                      0x00007fff23bce87f __CFRunLoopRun + 1263
50  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
51  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
52  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
53  app name.                           0x000000010233c421 main + 65
54  libdyld.dylib                       0x00007fff5227ec25 start + 1
55  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

ionic cordova -v 6.0.1 cordova -v 9.0.0 (cordova-lib@9.0.1) XCODE Version 11.3

I'm not sure how to resolve this because all of the results from my google search are related to xCode development of which I'm not familiar. I'm building a cross platform Ionic 4 app with Cordova.

Any help would be greatly appreciated.

来源:https://stackoverflow.com/questions/61293865/libcabi-dylib-terminating-with-uncaught-exception-of-type-nsexception-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!