xcode 6 - 找不到架构 i386 (zbar) 的符号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26060733/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcode 6 - symbols not found for architecture i386 (zbar)
提问by ash
I have a project which uses the zbar-sdk (a barcode scanning library).
我有一个使用 zbar-sdk(条形码扫描库)的项目。
After updating my machine to xcode 6 I am having some trouble. Please help me solve this.
将我的机器更新到 xcode 6 后,我遇到了一些麻烦。请帮我解决这个问题。
Undefined symbols for architecture i386:
架构 i386 的未定义符号:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in MenuListViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
回答by iOSdev
you have to import AVFoundation and AudioToolbox frameworks and also set i386 armv6 armv7 armv7s architectures needed for running the libraries
您必须导入 AVFoundation 和 AudioToolbox 框架,并设置运行库所需的 i386 armv6 armv7 armv7s 架构