我需要在我的应用中加入二维码,我正在使用 zxing,
扫描测试非常有效,在按照所有说明导入小部件时,一切正常, 但是
我在实现小部件和 QRCodeReader 的代码时遇到了这个错误
Undefined symbols for architecture i386: "_OBJC_CLASS_$_ZXingWidgetController", referenced from: objc-class-ref in AttendanceVC.o "_OBJC_CLASS_$_QRCodeReader", referenced from: objc-class-ref in AttendanceVC.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
请问如何解决这个问题?
编辑:
我的build设置架构是:i386 armv6 armv7
非常感谢!
最佳答案
仔细检查 README 中的第 2 步.在 Link Binary with Libraries
下,您必须有 libZXingWidget.a
,但听起来您没有。
关于ios - xcode4 zxing : Undefined symbols for architecture i386,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8893983/