Undefined symbols for architecture x86_64:

今天开始搞二维码扫描的用的是ZBarSDK

下载了 ZBarSDK下载地址,导入那几个框架后,以及代码后编译就出现 Undefined symbols for architecture x86_64:的问题,调试很久才解决.一把辛酸泪啊.

解决办法:

TARGETS→Build Setting→ValidArchitectures →  把里面全都删了只剩下armv7就行了.编译又出现如下问题:

error:No architecture to compile for (ONLY_ACTIVE_ARCH = YES,active arch = x86_64,VALID_ARCHS = i386).解决办法:target → build setting → 下的Build Architecture Only 设置为NO即可.

你可能感兴趣的:(OC异常)