ios - xcode4 zxing : Undefined symbols for architecture i386

标签 ios xcode4 zxing

我需要在我的应用中加入二维码,我正在使用 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/

相关文章:

iphone - Xcode 4 : How do you view the console?

ios - 如何自定义 UITableView?

Git 帮助 UserInterfaceState.xcuserstate : warning: Merge conflict: File still marked as conflicted

ios - 每次应用程序激活时显示启动画面

ios - 检索核心数据数据库中最后保存的属性

ios - 'No Cellular Network Available'时如何调用方法

iphone - 仅在调试版本中包含图形?

android - 如何在我的应用程序中使用 Zxing 库触发批量扫描模式以扫描多个条形码和二维码而不显示预览屏幕

android - ZXING 代码阅读器中的自定义相机 View 以显示检测

android - 如何使 ZXing 4.4 条码扫描器直接转到“URL”?