0
我在Mac优胜美地中使用最新的Cordova版本,使用命令行工具执行以下操作:当构建活动架构仅为否“时,Cordova链接器错误”构建的文件不是被链接的构架(i386)“
科尔多瓦创建XXXX XXXX com.xxxx
CD XXXX
科尔多瓦平台添加IOS
现在我打开平台下Xcode项目文件和Xcode的6打开
然后我去构建设置 - >构建有源体系只有 - >无
现在我运行示例准系统科尔多瓦App和它抛出一堆链接错误的
ld: warning: ignoring file /Users/joelasirvathamjesudoss/Library/Developer/Xcode/DerivedData/xxxx-ehdvqzsskcnwbncktgdnuqbbnloq/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (i386): /Users/joelasirvathamjesudoss/Library/Developer/Xcode/DerivedData/xxxx-ehdvqzsskcnwbncktgdnuqbbnloq/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture i386:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o
"_CDVRemoteNotification", referenced from:
-[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o
"_CDVRemoteNotificationError", referenced from:
-[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
但是当我更改构建设置 - >构建只有活动架构 - >是的 一切工作正常。
现在我知道在提交到App Store的建设活动体系结构只应该是第
所以,请各位指教我要去的地方错了
设置如下所示 预先感谢
你可以检查所有.m文件是否添加。检查编译设置中的编译源。 这可能会帮助你http://stackoverflow.com/questions/4839981/symbols-not-found-for-architecture-i386#answer-7955906 –
我经历了那个链接。我没有添加一段代码到应用程序,它是一个裸骨样本PhoneGap构建。我没有添加任何东西。这是我做的唯一步骤1)cordova create xxxx com.xxxx xxxx 2)cd xxxx 3)cordova platform add ios ...然后更改Build settings – joel
请检查在科尔多瓦库的设置也 –