(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarSDK/libzbar.a file ‘/Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarSDK/libzbar.a‘ for architecture armv7s
解决 libzbar.a‘ for architecture armv7s 的问题
下载最新的zbar源码
http://sourceforge.net/p/zbar/code/ci/default/tree/
hg clone http://zbar.hg.sourceforge.net:8000/hgroot/zbar/zbar cd zbar hg checkout iPhoneSDK-1.2.2 open iphone/zbar.xcodeproj
如何使用hg?
需下载:http://jasonfharris.com/machg/
下载完成后:
打开工程,更改scheme的设置
现在使用xcode命令:
lipo -create Release-iphoneos/libzbar.a Release-iphonesimulator/libzbar.a -o libzbar.a
在替换文件就ok啦!!
ZBarSDK支持armv7s
时间: 2024-10-06 22:46:41