昨天我更新了新的 Xcode 4.5,我在构建中遇到了一个错误,我不知道该如何解决这个问题。
如果我在模拟器中构建一切正常,但是当我尝试为存档构建时,我得到了这个:
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 之前一切正常,在我阅读必须从构建设置中删除“ ARMV6 ”的表单之前,我遇到了另一个问题,因为新 IOS 不再支持它,之后我得到了这个参考问题。
我感谢任何帮助,谢谢!!!!