问题描述
使用ZBarSDK(iOS的条形扫描库)时,我遇到了同样的错误。当我将其上传到我的开发设备或在iOS6模拟器上测试时,它运行正常。但是当我尝试为Distribution运行它时,它失败了:
I just got this same error when using ZBarSDK, a bar scanning library for iOS. It runs fine when I upload it to my development device or test it on the iOS6 simulator. But when I try to run it for Distribution it fails with:
(null):文件是通用的(3个切片),但不包含(n)armv7s切片: / users / quique123 / Documents / iphone apps / ScanThis / ZBarSDK / libzbar.a for architecture armv7s
(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/quique123/Documents/iphone apps/ScanThis/ZBarSDK/libzbar.a for architecture armv7s
其中libzbar.a是来自sdk的库。
where libzbar.a is the library from the sdk.
任何想法?
推荐答案
只需从Target Aguilar的Valid Architectures中删除不良架构设置,你很高兴:)
Simply remove the bad architecture from Valid Architectures in Target Aguilar Settings and you're good to go :)
这篇关于构建分发时Apple Mach-O链接器错误ZBarSDK错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!