ios開發中遇到的編譯錯誤總結

1:Undefined symbols for architecture arm64:css

?
1
2
3
<code>Undefined symbols for architecture arm64:
   "_OBJC_CLASS_$_FBSession" , referenced from: someFile
ld: symbol(s) not found for architecture arm64</code>
解決:

project -> target (your project name) -> build settings and change architectures to standard architectures (armv7, armv7s), and valid architectures to armv7, armv7s.
html


參考:http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64java



2:No architectures to compile for (ARCHS=arm6 arm7, VALID_ARCHS=armv7)ui

解決:url

  • Go to Project Target > Build Settings > Architectures Delete whatever you see there, and then add these rows one by one:spa

    armv6 armv7code

    There are no 'save' buttons there, so what I do, is adding another blank row, pressing enter, removing it, and then clicking out somewhere else, so that I make sure I have both of them added:htm

    加載中...

    • Now go to the AppName-Info.plist file, and look for the key "Require device capabilities" and delete it all. 參考:http://stackoverflow.com/questions/10005896/no-architectures-to-compile-for-archs-arm6-arm7-valid-archs-armv7 
相關文章
相關標籤/搜索