iOS错误集合
1>.ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture
原因:不支持低版本的系统如3.0
解决:Deployment Target was 3.0. Changing it to 4.3 fixed it.或者是更高的版本
2>.Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
svn更新代码后,打开xcode工程文件,会出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.
/bin/ln -s Versions/Current/Headers /Users/pro/Library/Developer/Xcode/DerivedData/MFWIOS-breuzemffzmbdearhkaspfwfbgta/Build/Products/Debug-iphoneos/fo.framework/Headers
error: File exists and is not a symbolic link: /Users/pro/Library/Developer/Xcode/DerivedData/MFWIOS-breuzemffzmbdearhkaspfwfbgta/Build/Products/Debug-iphoneos/fo.framework/Headers
解决:将/Users/pro/Library/Developer/Xcode目录下DerivedData文件夹删除
4>.
Cannot find executable for CFBundle 0xb99f2a0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/MusicLibrary.axbundle> (not loaded)
解决:
,就OK了
5>.
Undefined symbols for architecture i386: “_OBJC_CLASS_$_XXX”, referenced from: objc-class-ref in XXX ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
这个错误的发生原因一般是“XXX”这个文件(类库)虽然引入了工程中,但是由于种种原因(常见于多人开发,svn同步不规范)导致“XXX”并未被添加到project.pbxproj这个文件中。
解决方法是点击工程,在targets界面中找到Build Phases,根据提示信息“XXX”来判断缺少什么文件,一般如果缺少自定义的文件,XXX会是缺少的类名,那么就在Complie Sources中加入该文件。如果缺少类库,则在Link Binary With Libraries中加入该类库。
6>.
No known class method for selector ' '
错误分析.//删除.h与.m文件时的注意事项
![](http://images0.cnblogs.com/blog/571370/201409/141045424347644.png)
![](http://images0.cnblogs.com/blog/571370/201409/141046082461926.png)
![](http://images0.cnblogs.com/blog/571370/201409/141046205592830.png)
![](http://images0.cnblogs.com/blog/571370/201409/141046293094824.png)
![](http://images0.cnblogs.com/blog/571370/201409/141046400436945.png)
![](http://images0.cnblogs.com/blog/571370/201409/141046503871951.png)
![](http://images0.cnblogs.com/blog/571370/201410/171152312488109.png)
Build Active Architecture Only = No
, then the build was BUILD SUCCEEDED