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
請檢查在科爾多瓦庫的設置也 –