1.報錯:
Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7'
解決:http://stackoverflow.com/questions/17162975/unsupported-compiler-com-apple-compilers-llvmgcc42-xcode-5-dp
2.報錯:
"_jpeg_free_small", referenced from:
解決:http://blog.csdn.net/ioslearner_nana/article/details/45174365
a.到http://sourceforge.net/projects/libjpeg-turbo/files/1.4.0/ 下載ibjpeg-turbo-1.4.0.dmg(3.8 MB)文件。
b.安裝,一旦完成可以在該路徑下找到已經安裝的文件 /opt/libjpeg-turbo/lib
c.打開終端輸入命令 lipo -info /opt/libjpeg-turbo/lib/libjpeg.a
d.如果終端顯示以下命令運行后輸出,就意味著,你的項目(armv7/armv7s) * Architectures in the fat file: /opt/libjpeg-turbo/lib/libturbojpeg.a are: i386 x86_64 armv6 armv7 armv7s arm64
e.使用finder來導航到: /opt/libjpeg-turbo/lib,將 libjpeg.a文件添加到你的工程。
f. XCode-> Targets -> General -> Linked frameworks and libraries -> Click on the add button placed at the bottom -> include the libjpeg.a file
g.編譯項目,問題解決(可能還有問題包這個錯誤:
解決方法:在Build Settings搜索 enable_bitcode改為No )