当我试图构建我的应用程序来归档和更新到cordova 3.4.1时,我得到了这个链接错误消息。我之前解决了一些类似的问题,但我害怕触及构建设置,因为x86_64似乎不是一个受支持的体系结构。
我能做什么?
ld: warning:正在忽略文件/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应用程序:didReceiveLocalNotification: in AppDelegate.o "_CDVPageDidLoadNotification",引用自:
这是我得到的错误消息(当然要长得多)。
任何帮助都是非常感谢的。
博格丹
添加完整的错误日志:
ld: warning: ignoring文件为不是要链接的架构的档案构建/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应用程序:didReceiveLocalNotification: in AppDelegate.o "_CDVPageDidLoadNotification",引用自: CDVSplashScreen.o "_CDVPluginHandleOpenURLNotification",引用自:-AppDelegate pluginInitialize :handleOpenURL: in AppDelegate.o "_OBJC_CLASS_$_CDVCommandDelegateImpl",引用自: MainViewController.o "_OBJC_CLASS_$_CDVCommandQueue",引用自: MainViewController.o "_OBJC_CLASS_$_CDVPlugin",引用自: CDVDevice.o CDVConnection.o CDVNotification.o CDVNotification.o CDVSplashScreen.o "_OBJC_CLASS_$_CDVPluginResult",引用自:_OBJC_CLASS_$_CDVNotification - _OBJC_CLASS_$_CDVSplashScreen -_OBJC_CLASS_$_CDVPluginResult。o CDVConnection.o objc-class-ref。o CDVNotification.o "_OBJC_CLASS_$_CDVViewController",引用自:_OBJC_CLASS_$_MainViewController in MainViewController.o objc-class-ref in CDVDevice.o "_OBJC_METACLASS_$_CDVCommandDelegateImpl",引用自:_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o "_OBJC_METACLASS_$_CDVCommandQueue",引用自: MainViewController.o "_OBJC_METACLASS_$_CDVPlugin",引用自: CDVDevice.o CDVConnection.o CDVNotification.o _OBJC_METACLASS_$_CDVNotification中的_OBJC_METACLASS_$_CDVDevice .o CDVSplashScreen.o "_OBJC_METACLASS_$_CDVViewController",引用自: MainViewController.o ld:未找到体系结构的符号x86_64 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
发布于 2014-05-29 23:30:26
尝试从生成设置>有效体系结构中删除x86_64。我在arm64架构上也遇到过类似的问题。
https://stackoverflow.com/questions/23652932
复制相似问题