我最近从git存储库下载了一些源代码到Xcode 6.1.1中。然而,对于应用程序中包含的库(以及我的文件系统中存在的库),我发现“缺少所需的体系结构i386”。
错误如下:
ld: warning: ignoring file /Users/myname/Documents/mycomp-mycompapp-ios/mycomp/libs/zbar_iOS7_Fix/libzbar.a, missing required architecture i386 in file /Users/myname/Documents/mycomp-mycompapp-ios/mycomp/libs/zbar_iOS7_Fix/libzbar.a (3 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ZBarReaderView", referenced from:
objc-class-ref in MyViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我看过一些类似的帖子,但我很难弄清楚解决方案是什么——它是否与构建设置有关,我是否要导入另一个库?