越简单越好!

iOS 6 and Core Plot 打包时的一个错误问题

发表于 2013-03-29 09:50 | 1682次阅读 0次点赞   IOS开发


ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/bevin1984/ios开发/erpUnitStore.ios/erpUnitStore/libCorePlot-CocoaTouch.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

后来找了好多地方,在老外的一个博客发现了解决方法:

This error did not allow me to run on my iPad.  So I did a bit of searching and found that I have to change the Build Active Architecture Only to YES.  After that, it all worked fine.  This setting is in the build setting.  Hope this helps someone!


具体操作:

打个项目的Build Setting  找到 Build Active Architecture Only 把里头的Debug和Release 都改成YES

再进行打包一切OK!


返回顶部 ^