我在构建时遇到错误(使用 cordova 3.4):
Undefined symbols for architecture i386:
"_iconv", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::string&, unsigned char const*, unsigned long, char const*) in zxing-all-in-one.o
"_iconv_close", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::string&, unsigned char const*, unsigned long, char const*) in zxing-all-in-one.o
"_iconv_open", referenced from:
zxing::qrcode::DecodedBitStreamParser::append(std::string&, unsigned char const*, unsigned long, char const*) in zxing-all-in-one.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
我很确定这来自手机间隙 QR 扫描仪插件,但我认为它根本不应该构建 i386。二维码扫描器似乎没有那种架构的库。
我如何告诉 cordova 不要构建 i386?还是我错过了什么?
最佳答案
构建时,您可以指定要执行的构建类型:
cordova compile --device
或者对于 i386:
cordova compile --emulator
这就是为我修复它的原因。
关于ios - Apache Cordova - 不要构建 i386 架构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22948917/