ios下开发扫描条形码功能
最近开发的一个项目中使用到了扫描条形码功能,使用BarcodeScanner调试好用,可以运行起来,扫描正常,但是打包的时候,不能设置64bit,如果设置了Architecture(armv7,arm64 )以后就编译不过去了。报错如下:
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in CDVBarcodeScanner.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_CDVBarcodeScanner in CDVBarcodeScanner.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
各种查资料修改,都不能通过。BarcodeScanner官网已经停止了更新,应该是没有针对64bit
进行支持。请问各位大神,除了BarcodeScanner,还有其他的插件可以开发条形码扫描功能吗?
我使用的例子地址:
https://github.com/zeroasterisk/PhoneGap-BarcodeScanner-Example-iOS ng-cordova里面有扫描二维码插件
http://angular-js.in/ng-cordova/
https://github.com/wildabeast/BarcodeScanner?utm_source=angular-js.in&utm_medium=website&utm_campaign=content-curation
页:
[1]