Cordova iOS应用程序构建成功,但未安装在iPhone或模拟器上

时间:2018-08-16 07:50:05

标签: ios xcode cordova cocoapods firebase-dynamic-links

我正在使用Cordova开发iOS应用。当我安装dynamiclinks插件时发生错误Apple Match O linker error

要解决此问题,请按照以下步骤操作

  1. 打开Xcode> Pod>目标支持文件> Pods- {TARGET-NAME}     在这两个文件中找到“ OTHER_LDFLAGS”并仅删除“ -ObjC”:     Pods- {TARGET-NAME} .release.xcconfig和Pods- {TARGET-NAME} .debug.xcconfig
  2. 转到项目的主要目标>构建设置>其他链接器标志:     确保值中没有剩余“ -ObjC”

  3. 我在ios中删除了build / Build文件夹,然后再次运行iOS。现在可以使用。

现在,以上错误消失了,并且可以使用xcode成功构建。但是,当我尝试在iPhone或模拟器上安装它时,却出现了错误

2018-08-16 13:01:08.514992+0530 BlabberBuzz[1883:39362]  - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2018-08-16 13:01:08.987959+0530 BlabberBuzz[1883:39046] Apache Cordova native platform version 4.5.3 is starting.
2018-08-16 13:01:08.988209+0530 BlabberBuzz[1883:39046] Multi-tasking -> Device: YES, App: YES
2018-08-16 13:01:09.054158+0530 BlabberBuzz[1883:39046] -[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x60400023d600
2018-08-16 13:01:09.108515+0530 BlabberBuzz[1883:39046] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x60400023d600'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000107f141e6 __exceptionPreprocess + 294
    1   libobjc.A.dylib                     0x00000001075a9031 objc_exception_throw + 48
    2   CoreFoundation                      0x0000000107f95784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x0000000107e96898 ___forwarding___ + 1432
    4   CoreFoundation                      0x0000000107e96278 _CF_forwarding_prep_0 + 120
    5   BlabberBuzz                         0x000000010477af83 -[CDVViewController viewDidLoad] + 195
    6   BlabberBuzz                         0x000000010468af76 -[MainViewController viewDidLoad] + 54
    7   UIKit                               0x0000000109221131 -[UIViewController loadViewIfRequired] + 1215
    8   UIKit                               0x0000000109221574 -[UIViewController view] + 27
    9   UIKit                               0x00000001090ef123 -[UIWindow addRootViewControllerViewIfPossible] + 122
    10  UIKit                               0x00000001090ef834 -[UIWindow _setHidden:forced:] + 294
    11  UIKit                               0x00000001091025cc -[UIWindow makeKeyAndVisible] + 42
    12  BlabberBuzz                         0x000000010477f6d8 -[CDVAppDelegate application:didFinishLaunchingWithOptions:] + 776
    13  BlabberBuzz                         0x000000010468acf7 -[AppDelegate application:didFinishLaunchingWithOptions:] + 199
    14  BlabberBuzz                         0x00000001046bd8b4 -[AppDelegate(FirebasePlugin) application:swizzledDidFinishLaunchingWithOptions:] + 100
    15  UIKit                               0x00000001090746fb -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 278
    16  UIKit                               0x0000000109076172 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4123
    17  UIKit                               0x000000010907b5cb -[UIApplication _runWithMainScene:transitionContext:completion:] + 1677
    18  UIKit                               0x000000010943df7e __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866
    19  UIKit                               0x0000000109810a39 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
    20  UIKit                               0x000000010943dbba -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
    21  UIKit                               0x000000010943e3db -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 675
    22  UIKit                               0x0000000109daf614 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 299
    23  UIKit                               0x0000000109daf4ae -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 433
    24  UIKit                               0x0000000109a9375d __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
    25  UIKit                               0x0000000109c8e4b7 _performActionsWithDelayForTransitionContext + 100
    26  UIKit                               0x0000000109a93627 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 223
    27  UIKit                               0x00000001098100e0 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
    28  UIKit                               0x0000000109079eac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515
    29  UIKit                               0x000000010964cbcb -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
    30  FrontBoardServices                  0x0000000111f6a2f3 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 331
    31  FrontBoardServices                  0x0000000111f72cfa __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 225
    32  libdispatch.dylib                   0x000000010b3947ec _dispatch_client_callout + 8
    33  libdispatch.dylib                   0x000000010b399db8 _dispatch_block_invoke_direct + 592
    34  FrontBoardServices                  0x0000000111f9e470 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    35  FrontBoardServices                  0x0000000111f9e12e -[FBSSerialQueue _performNext] + 439
    36  FrontBoardServices                  0x0000000111f9e68e -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    37  CoreFoundation                      0x0000000107eb6bb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    38  CoreFoundation                      0x0000000107e9b4af __CFRunLoopDoSources0 + 271
    39  CoreFoundation                      0x0000000107e9aa6f __CFRunLoopRun + 1263
    40  CoreFoundation                      0x0000000107e9a30b CFRunLoopRunSpecific + 635
    41  GraphicsServices                    0x000000010fff1a73 GSEventRunModal + 62
    42  UIKit                               0x000000010907d057 UIApplicationMain + 159
    43  BlabberBuzz                         0x000000010468ac11 main + 65
    44  libdyld.dylib                       0x000000010b411955 start + 1
    45  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

我不明白此错误。请帮我解决这个问题。

Xcode-9

cordova-ios:4.5.4

cocoapod :(最新)用于Firebase动态链接

0 个答案:

没有答案
相关问题