【问题标题】:Cordova app fails again on linking after updating to cordova 3.4.1 iOSCordova 应用程序在更新到 cordova 3.4.1 iOS 后再次链接失败
【发布时间】:2014-07-02 09:46:01
【问题描述】:

在尝试构建我的应用程序以存档和更新到 cordova 3.4.1 时,我收到此链接错误消息。我之前解决了类似的问题,但我害怕触及构建设置,因为 x86_64 似乎不是受支持的架构。

我能做什么?

ld:警告:忽略文件 /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a,文件是为存档而构建的,它不是被链接的架构(x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a 架构 x86_64 的未定义符号: “_CDVLocalNotification”,引用自: -[AppDelegate application:didReceiveLocalNotification:] 在 AppDelegate.o “_CDVPageDidLoadNotification”,引用自:

这是我收到的错误消息(当然要长得多)。

感谢任何帮助。

波格丹

添加了完整的错误日志:

ld:警告:忽略文件 /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a,文件是为存档而构建的,它不是被链接的架构(x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a 架构 x86_64 的未定义符号: “_CDVLocalNotification”,引用自: -[AppDelegate application:didReceiveLocalNotification:] 在 AppDelegate.o “_CDVPageDidLoadNotification”,引用自: -CDVSplashScreen.o 中的[CDVSplashScreen pluginInitialize] “_CDVPluginHandleOpenURLNotification”,引用自: -[AppDelegate application:handleOpenURL:] 在 AppDelegate.o “_OBJC_CLASS_$_CDVCommandDelegateImpl”,引用自: MainViewController.o 中的 _OBJC_CLASS_$_MainCommandDelegate “_OBJC_CLASS_$_CDVCommandQueue”,引用自: MainViewController.o 中的 _OBJC_CLASS_$_MainCommandQueue “_OBJC_CLASS_$_CDVPlugin”,引用自: CDVDevice.o 中的_OBJC_CLASS_$_CDVDevice CDVConnection.o 中的 _OBJC_CLASS_$_CDVConnection CDVNotification.o 中的 _OBJC_CLASS_$_CDVNotification CDVSplashScreen.o 中的 _OBJC_CLASS_$_CDVSplashScreen “_OBJC_CLASS_$_CDVPluginResult”,引用自: CDVDevice.o 中的 objc-class-ref CDVConnection.o 中的 objc-class-ref CDVNotification.o 中的 objc-class-ref “_OBJC_CLASS_$_CDVViewController”,引用自: MainViewController.o 中的 _OBJC_CLASS__$_MainViewController CDVDevice.o 中的 objc-class-ref “_OBJC_METACLASS_$_CDVCommandDelegateImpl”,引用自: MainViewController.o 中的 _OBJC_METACLASS_$_MainCommandDelegate “_OBJC_METACLASS_$_CDVCommandQueue”,引用自: MainViewController.o 中的 _OBJC_METACLASS_$_MainCommandQueue “_OBJC_METACLASS_$_CDVPlugin”,引用自: CDVDevice.o 中的 _OBJC_METACLASS_$_CDVDevice CDVConnection.o 中的_OBJC_METACLASS_$_CDVConnection CDVNotification.o 中的 _OBJC_METACLASS_$_CDVNotification CDVSplashScreen.o 中的 _OBJC_METACLASS_$_CDVSplashScreen “_OBJC_METACLASS_$_CDVViewController”,引用自: MainViewController.o 中的 _OBJC_METACLASS_$_MainViewController ld:未找到架构 x86_64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

【问题讨论】:

    标签: ios xcode cordova


    【解决方案1】:

    尝试从 Build Settings > Valid Architectures 中删除 x86_64。我在 arm64 架构上遇到了类似的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-29
      • 1970-01-01
      • 1970-01-01
      • 2020-05-05
      • 1970-01-01
      • 2017-08-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多