【发布时间】: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 查看调用)
【问题讨论】: