Apache Cordova - 不构建i386架构 [英] Apache Cordova - don't build i386 architecture

查看:150
本文介绍了Apache Cordova - 不构建i386架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的版本中遇到错误(使用cordova 3.4):

I'm getting an error in my build (using 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扫描器似乎没有这个架构的库。

I'm pretty sure this comes from the phone gap QR scanner plugin, but I don't think it should be building i386 at all. The qrcode scanner seems not to have a library of that architecture.

如何告诉cordova不要构建i386?

How can I tell cordova not to build i386? Or did i miss something?

推荐答案

构建时可以指定要执行的构建类型:

When you build you can specify what type of build to do:

cordova compile --device

或i386:

cordova compile --emulator

这对我来说是固定的。

这篇关于Apache Cordova - 不构建i386架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆