【问题标题】:Install Calabash-cucumber error on OS X Mavericks在 OS X Mavericks 上安装 Calabash-cucumber 错误
【发布时间】:2014-04-01 09:11:48
【问题描述】:

我正在尝试通过参考链接在 OS-x Mavericks 上安装葫芦以实现自动化:(https://github.com/calabash/calabash-ios)

我已经安装了最新版本的 ruby​​、homebrew、rbenv。

请注意该命令

homebrew doctor

只给我一个警告:

Warning: Xcode is installed to a directory with a space in the name.
This will cause some formulae to fail to build.

我无法删除此警告。还有一些论坛建议这可能是无害的。

在为安装问题苦苦挣扎了 2 天之后, 我被困在这一点上,我收到以下错误:

nitzs-iMac:tabbedapp nitzarg$ sudo gem install calabash-cucumber
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing calabash-cucumber:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile

make "DESTDIR="
compiling gherkin_lexer_ar.c
ragel/i18n/ar.c.rl:440:1: warning: control may reach end of non-void function [-Wreturn-            type]
}
^
ext/gherkin_lexer_ar/gherkin_lexer_ar.c:864:18: warning: unused variable 'lexer_en_main'         [-Wunused-const-variable]
static const int lexer_en_main = 1;
             ^
2 warnings generated.
linking shared-object gherkin_lexer_ar.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [gherkin_lexer_ar.bundle] Error 1


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/gherkin-2.12.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/gherkin-   2.12.2/ext/gherkin_lexer_ar/gem_make.out

我假设安装失败是因为终端无法识别 calabash 命令。 我需要知道为什么会出现错误?是小牛的问题吗?还是 Xcode-5 的问题?

任何帮助或建议将不胜感激。谢谢。

【问题讨论】:

标签: ios ruby cucumber osx-mavericks calabash


【解决方案1】:

我为你查看了 calabash-ios google 组,我想我有适合你的解决方案

试试这样安装

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install calabash-cucumber

如果失败,您可以尝试将 xcode 从 5.1 降级到以前的版本之一(Preferences->Locations)。

还有参考link

【讨论】:

  • 嗨@Lasse,我在谷歌群组上看到了同样的查询。 commang 应该是 -->" sudo export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install; sudo gem install calabash-cucumber"。但它给了我同样的错误。现在降级似乎是一个牵强附会的选项,因为应用程序即时测试是针对 xcode 5 的。你能用任何特定的参数支持它(降级)吗?
  • 不幸的是,我不知道。但是我看到你在google群里提出了你的问题,我相信你很快就会得到答案。
  • Stackoverflow 上也有关于此的另一篇文章,它有一个刚刚被接受的替代答案。因此,如果您还没有,您可以尝试一下。 Link
  • 谢谢。为我工作!
猜你喜欢
  • 2014-05-08
  • 1970-01-01
  • 2014-01-26
  • 2013-11-01
  • 1970-01-01
  • 1970-01-01
  • 2014-11-30
  • 2014-03-05
  • 1970-01-01
相关资源
最近更新 更多