Well, at last I got it working.. For anyone who encounters this in the future..
Rename the main.m file to main.mm.
ZXing's README states why we need this
It can happen that when trying to build your own project with ZXingWidgetController you get linker errors like "undefined reference to". If this error looks like a c++ undefined reference, then renaming main.m into main.mm (Objective-C++ source suffix) may fix the problem
Rename the file (ViewController/View) which uses ZXing libray functions so that it also has .mm extension.
Check architecture settings across project. Give architecture and valid architecture as armv7 armv7s in your project settings, target settings, and ZXing project (which you added to your main project) and target settings.
In main project -> Build Settings scroll and find out the options, C++ Language Dialect and C++ Standard Library. Select options "Compiler Default" for both of them. (This is the step I missed, It is needed because newest XCode template has compiler default settings different to what they were in older versions).
You also might have to set ZXingWidget's "Build Valid Architecture Only" flag set as NO. In my case, this field was already NO
These fixed the issue for me..
分享到:
相关推荐
ios7下 扫描二维码的例子,可以将此demo导入到需要的项目中,将工程的deployment target设置到6.0或者6.1.然后百度下导入包的过程即可,本人已调试过。下面地址是倒入必须的包...
ios中使用zxing扫描二维码的完整演示 1、基于zxing开源库,进行二次修改,以简单方式提供接口,可以直接使用也可以用来学习如何使用zxing原版。 2、有演示工程,引入编译好的静态库libX.a 3、有配置说明,有注意事项...
介绍了ZXIng的使用 , 以及遇到问题的整理。
修改cordova iOS zxing源码,仿微信,增加动画扫描,添加手动输入,直接替换插件中的CDVBarcodeScanner.mm文件即可生效。不需要手动输入,可自行删除代码。
该工程含ZBar 和 Zxing 两种不同的二维码扫描方式 两种扫描方式 都有弹出viewcontroller 和 自定义嵌入界面都制作了一下
在xcode4.6 iPhone4 ipad4 测试可用 实现了二维码的生成 , 二维码的和条形码的扫描, 支持从相册读取二维码图片的扫描~~
解决zxing扫描中文乱码的问题 下载后可以直接使用这个demo里面的zxing 不需要再去下源码 然后重新删除
zxing仿微信扫描,稍微改动了一下,还有许多待改善的地方,请留言,共同进步
最新最详细的ZXing二维码使用文档,从配置到编码实现,逻辑清晰简单,适合各等级开发人员阅读
zxing iphone下载地址,github上面现在只有安卓的,这里面提供的是ios,有需要的尽管下载
Zxing 需要的开发工具包,生成二维码需要的工具包
基于ZXing 的 iOS二维码Demo 博客地址:http://blog.csdn.net/ysy441088327/article/details/8515556
NULL 博文链接:https://thierry-xing.iteye.com/blog/1815295
二维码开源库ZXing加入xcode工程问题的解决_ios ios开发技巧整理
zxing-zxing-3.2.1二维码扫描、生成的开源库,非常强大。
zxing所需要用到的jar包zxing所需要用到的jar包zxing所需要用到的jar包zxing3.2.1
Zxing-Simplification是对zxing上android项目的简化,包含了三个子项目。 Zxing安卓二维码条形码代码android项目源码 XBarcodeGenerator**:从Barcode Scanner中分离出来的二维码生成器 **XBarcodeScanner**:从...
ZXing(“zebra crossing”)是一个用Java实现的开源,多格式1D / 2D条形码图像处理库,具有其他语言的端口。
- ZXing是一个开源的条码识别软件,包括多种一维和二维条码的解码功能。 - 它支持多种类型的条码,包括QR码、Data Matrix、EAN-13、Code 39等。 - ZXing的优点在于它能够快速准确地读取和解析各种类型的条码。 - 它...
自己写的关于扫描二维码例子,使用了zxing的开源框架,里面已经包含了lib包,下载导入即可使用