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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:42:13  来源:igfitidea点击:

xcode 6 - symbols not found for architecture i386 (zbar)

iosxcodezbar

提问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 架构