我的构建中出现错误(使用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。 qrcode扫描程序似乎没有该架构的库。
如何告诉cordova不要构建i386?或者我错过了什么?
答案 0 :(得分:4)
构建时,您可以指定要执行的构建类型:
cordova compile --device
或i386:
cordova compile --emulator
这就是为我解决的问题。
答案 1 :(得分:0)
我也一直在努力解决这个问题。我按照Snips中的指导回答这里,让它为我工作