xocde4.2使用ffmepg的时候一直没有报错,但是突然升级了xcode4.6之后,一编译就出现了错误. 错误如下:ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/liuyang/Desktop/railway/UHomeTaichuan/UHomeTaichuan/libavcodec.a for architecture armv7s
解决的办法是:解决办法如下:找到项目的Build Settings- > Build Active Architecture Only,将其从NO 设为 YES就可以.
使用第三方开源库的,模拟器调试可以,但是真机iPhone5调试就报错.出现的报错信息是: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: libavcodec.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法是:在target的Build Settings里面,找到Valid Architectures,删除其中的armv7s