我正在使用xCode 6.3。我在我的應用程序上附加了外部庫。我研究了這個問題很久。我試過整個解決方案。但他們沒有幫助。更改計劃名稱,刪除路徑,添加/刪除架構...我得到這個錯誤:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TLFApplicationHelper", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TLFCustomEvent", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的設置:
有效的體系結構:ARMv7的armv7s arm64 體系結構:ARMv7的arm64 構建主動架構:否
順便說一句,沒有TLFApplicationHelper.m和TLFCustomEvent.m。它們是TLFCustomEvent.h和TLFApplicationHelper.h。
當我設置構建有源體系僅作爲不,錯誤信息是這樣的:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_TLFApplicationHelper", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TLFCustomEvent", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
試過這一個http://stackoverflow.com/questions/22328882/xcode-5-1-no-architectures-to-compile-for-only-active-arch-yes-active-arch-x –
The Library您添加的iPhone模擬器不支持。嘗試在真實設備上運行。 –
你確定你在項目中添加了庫文件還要確保「TLFApplicationHelper」支持i386體系結構嗎?如果它不支持i386請嘗試使用設備。 – rejusss