xcode4 zxing:体系结构 i386 的未定义符号 [英] xcode4 zxing : Undefined symbols for architecture i386

查看:23
本文介绍了xcode4 zxing:体系结构 i386 的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用中加入 QR,我使用的是 zxing,

I need to incorporate QR in my app, im using zxing,

扫描测试效果很好,按照所有说明导入小部件时,一切正常,但是

the scan test works wonderfully, and when importing the widget after following all instructions, all goes fine, but

在实现小部件和 QRCodeReader 的代码时出现此错误

I have this errors when implementing the code for the widget and QRCodeReader

架构 i386 的未定义符号:_OBJC_CLASS_$_ZXingWidgetController",引用自:AttendanceVC.o 中的 objc-class-ref_OBJC_CLASS_$_QRCodeReader",引用自:AttendanceVC.o 中的 objc-class-refld:找不到架构 i386 的符号clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

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)

请问如何解决这个问题?

so how to fix this please?

我的构建设置架构是:i386 armv6 armv7

非常感谢!

推荐答案

仔细检查

Double check step 2 in the README. Under Link Binary with Libraries you must have libZXingWidget.a and it sounds like you don't.

这篇关于xcode4 zxing:体系结构 i386 的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆