您的位置:首页 > 其它

使用xcode4.5的Zxing编译出错问题解决方案

2013-04-08 15:34 225 查看
环境:xcode4.6.1 zxing版本r2461 设备iphone5

问题描述:使用模拟器编译没问题,但是编译进device会出错

  ld: warning: ignoring file xx/Build/Products/Debug-iphoneos/libZXingWidget.a, file was built for archive which is not the architecture being       linked (armv7s): xx/Build/Products/Debug-iphoneos/libZXingWidget.a

     "_OBJC_CLASS_$_ZXingWidgetController", referenced from:

    objc-class-ref in MZHomePageViewController.o

    "_OBJC_CLASS_$_QRCodeReader", referenced from:

    objc-class-ref in MZHomePageViewController.o

    ld: symbol(s) not found for architecture armv7s

解决方案:设置“Architectures" 和 "Valid Architectures

如图所示:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐