1.clang: error: linker command failed with exit code 1 (use -v to see invocation)
工程裡面不要有相同的全局變量:例如int number=0;在另一個頁面也是。
2.No architectures to compile for(ONLY_ACTIVE_ARCH=YES
這種錯誤 修改building settings下 Build Active Architecture only 為NO即可。
3.dyld: Symbol not found: _objc_setProperty_nonatomic
_objc_setProperty_nonatomic是ios6.0的新方法,三方庫設定了Deployment Target 為6.0就會調用這2個新增的方法,為ios5中沒有,我們的項目是支援ios5的。是以報錯。把lib的target設定為5.0之後,沒有這個錯誤了
如果你在使用新浪sdk,使用了libWeiboSDK_X64的庫,如果在5.x上運作,也會報這個錯,猜測這個版本的庫時6.x以下的。換成那個不帶_X64的庫,沒有問題。
4在使用百度統計是,如果出現類似錯誤

- 在buildPhases 下添加coreTelephoney.framework即可 這個問題,花費了我2天的時間才找到,總以為是自制的靜态庫的問題。
iOS錯誤總結。。。。。持續更新中 -
no provisioning profile at path '/Users/user/Library/MobileDevice/Provisioning Profiles/XXXXX.XXX
當報這種錯誤時,工程證書不正确,修改build setting下 的Provisioning Profile為正确的的項目證書即可
-
malformed or corrupted AST file: iosXXX,類似的錯誤時,時xcode編譯器的問題,清理下/Library/Developer/Xcode/DerivedData下的資料
即可。
4.
錯誤:ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386
原因:不支援低版本的系統如3.0
解決:Deployment Target was 3.0. Changing it to 4.3 fixed it.