//聯(lián)系人:石虎QQ: 1224614774昵稱(chēng):嗡嘛呢叭咪哄
一、用 ZBarSDK 做掃描二維碼 導(dǎo)入的庫(kù)文件
圖1:
二、導(dǎo)入ZBarSDK 第三方框架 會(huì)出現(xiàn)此錯(cuò)誤:
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??試試這個(gè)支持全平臺(tái)
3.把下載的包從新導(dǎo)入項(xiàng)目中
圖3:
謝謝!!!