昨天我更新了新的Xcode 4.5,並且在構建時出現了錯誤,我不知道該如何解決此問題。Xcode 4.5和Phonegap 2.0參考問題
一切工作正常,如果我建立模擬器,但是當我嘗試建立歸檔例如,我得到這個:
ld: warning: ignoring file /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CDVURLProtocol", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
和更多的錯誤吼叫,這是相同的
一切工作正常,直到你更新Xcode,我有另一個問題之前,我讀取的Formums,我必須從構建設置中刪除「ARMV6」,導致它不再支持新的IOS,之後,我得到這個參考問題。
我感謝任何幫助, THANKs !!!!
確實;我懷疑運行科爾多瓦的人最終會推出包含v7s的版本。 – vcsjones
哦,真的有幫助..謝謝保存我的時間.. – AlexC
經過這個修復後,我有另一個問題,它沒有橫向和我發現的修復這裏https://groups.google.com/forum/#!話題/ phonegap/KJmvRIajsm8 – AlexC