1

I am trying to run calabash-ios in CircleCI. I am getting the following error. Is there a way to find out the path or file location that should be used? Error message is attached below.

 Error... Unable to find APP_BUNDLE_PATH.
  Cannot find a built app that is linked with calabash.framework
  Please build your app from Xcode
  You should build your calabash target.

  Alternatively, specify APP_BUNDLE_PATH in features/support/01_launch.rb
  This should point to the location of your built app linked with calabash.
  (RuntimeError)
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.14.3/lib/calabash-cucumber/launch/simulator_launcher.rb:245:in `app_bundle_or_raise'
  /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.14.3/lib/calabash-cucumber/launcher.rb:569:in `relaunch'
  /Users/distiller/iOSAppTest/features/support/01_launch.rb:27:in `Before'

I have tested it locally on my machine and it works fine, but it isn't working on CircleCI.

4

1 回答 1

0

http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html#label-APP+and+APP​​_BUNDLE_PATH

这应该指向与 calabash 链接的构建应用程序的位置。

要点是你需要告诉 Calabash .app 包在哪里。我不熟悉 CircleCI,所以我没有具体的建议。

在本地你会这样做:

$ APP=/path/to/the/App.app cucumber

你能用你用来启动黄瓜的确切命令更新你的答案吗?

于 2015-05-28T12:01:14.730 回答