我已经将我的x code版本从5.0更新到5.1。
我在项目中使用了ZBarSDK来扫描条形码。在模拟器“iPhone Retina(3.5英寸)”和“iPhone Retina(4英寸)”中,它可以正常工作。但是当我想要使用模拟器“iPhone Retina(4英寸64位)”构建时,它会出现以下错误。
ld: warning: ignoring file /Users/sayan/Desktop/ProjectAtanu/Omlis/Custom Classes/ZBarSDK/libzbar.a, missing required architecture x86_64 in file /Users/sayan/Desktop/ProjectAtanu/Omlis/Custom Classes/ZBarSDK/libzbar.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in HomeViewController.o
"_ZBarReaderControllerResults", referenced from:
-[HomeViewController imagePickerController:didFinishPickingMediaWithInfo:] in HomeViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
架构:标准架构(arm64,armv7,armv7s)- $(ARCHS_STANDARD)
有效架构:arm64、armv7、armv7s
基本 SDK:最新 IOS(IOS 7.1)
iOS 部署目标:iOS 6.1
非常感谢任何帮助!