我得到這個奇怪的鏈接器錯誤:Xcode的鏈接出錯:文件太小,建築的ARMv7
ld: in /Users/.../test project/iSMP.framework/iSMP, file too small for architecture armv7
collect2: ld returned 1 exit status Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
的Xcode VERS:4.0.2
如果我編譯模擬器,我得到
... file too small for architecture i386
谷歌沒有任何幫助..
我已經試過:
- 明確的搜索路徑
- 移動框架重新添加框架到不同的目錄,然後重新添加。
更新:從脂輸出-info libiSMP-2.1.A
Architectures in the fat file: libiSMP-2.1.a are: armv6 armv7 i386
所以,它不是從架構不匹配;
在此先感謝!
Clean build解決了這個問題... – Ondrej
這些步驟對我來說解決了這個問題:1.關閉Xcode 2.清理DerivedData文件夾3.重建 – cndv