应用在真机可以运行,而模拟器上无法运行。
报错如下:
Undefined symbols for architecture x86_64:
"_EXCARDS_Init", referenced from:
-[JYBDScanCardManage configIDScan] in JYBDScanCardManage.o
"_BankCardNV12", referenced from:
-[JYBDScanCardManage parseBankImageBuffer:] in JYBDScanCardManage.o
"_EXCARDS_RecoIDCardData", referenced from:
-[JYBDScanCardManage parseIDScanImageBuffer:] in JYBDScanCardManage.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决:
全局搜索,找到这些方法,添加:(意思就是如果是模拟器就直接return)
#if TARGET_IPHONE_SIMULATOR
return;
#else
//这里是你原来的实现代码
#endif