ld: file is universal (3 slices) but does not contain a(n) armv7s slice

本文介绍了使用Xcode5和iPhone5C遇到的第三方库Zbar不支持armv7s架构的问题及解决方法。文章指出,可以通过更新到支持armv7s的Zbar版本或自行编译来解决问题。

今天在用Xcode5和iPhone5C运行一个带有条形码扫描的第三方库Zbar时报以下错误:

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/Desktop/WebImageTest/ZBarSDK/libzbar.a file '/Users/Desktop/WebImageTest/ZBarSDK/libzbar.a' for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)

原因是此第三方库Zbar不支持armv7s。解决方案就只有去官方下载一个支持armv7s的Zbar了,或者重新编译一下这个库。怎么编译可以参考网址http://blog.sina.com.cn/s/blog_6c8d95c101016ufx.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值