//联系人:石虎 QQ: 1224614774昵称:嗡嘛呢叭咪哄
一、用 ZBarSDK 做扫描二维码 导入的库文件
图1:
二、导入ZBarSDK 第三方框架 会出现此错误:
ld: warning: ignoring file /Users/mac/Desktop/扫描777/扫描777/ZBarSDK/libzbar.a, missing required architecture x86_64 in file /Users/mac/Desktop/扫描777/扫描777/ZBarSDK/libzbar.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in ViewController.o
"_ZBarReaderControllerResults", referenced from:
-[ViewController imagePickerController:didFinishPickingMediaWithInfo:] in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
图2:
三、解决ZBarSDK方法:
1.把以前的 libzbar.a 包删除 去下载新的包.
2. 链接: http://pan.baidu.com/s/1o666vJ8 密码: ik2m 试试这个支持全平台
3.把下载的包从新导入项目中
图3:
谢谢!!!