环境: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
如图所示: