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

环境:xcode4.5  zxing版本r2461

问题描述:使用模拟器编译没问题,但是编译进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

如图所示:

posted @ 2012-10-22 10:12  小令狐  阅读(531)  评论(0编辑  收藏  举报