Calabash IOS无法找到xcode项目
问题描述:
嗨,大家好,任何人都知道如何解决这个问题葫芦我试图运行我的第一个场景,但我得到一个错误,这是我第一次使用葫芦,我不是一个真正的开发人员我只是一个质量保证测试员,我不知道如何解决这个问题,你能告诉我或者解决这个问题的步骤吗?Calabash IOS无法找到xcode项目
**Scenario: Example steps**
# features/my_first.feature:6
Unable to find *.xcodeproj in /Users/FDMCarlo (RuntimeError)
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.16.3/lib/calabash-cucumber/launch/simulator_launcher.rb:106:in `derived_data_dir_for_project'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.16.3/lib/calabash-cucumber/launch/simulator_launcher.rb:223:in `app_bundle_or_raise'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.16.3/lib/calabash-cucumber/launcher.rb:573:in `relaunch'
/Users/FDMCarlo/features/support/01_launch.rb:27:in `Before'
Given I am on the Welcome Screen # features/step_definitions/my_first_steps.rb:1
Then I swipe left # calabash-cucumber-0.16.3/features/step_definitions/calabash_steps.rb:222
And I wait until I don't see "Please swipe left" # calabash-cucumber-0.16.3/features/step_definitions/calabash_steps.rb:158
And take picture # calabash-cucumber-0.16.3/features/step_definitions/calabash_steps.rb:217
Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps
答
您需要将APP
命令行变量设置为指向您的应用程序。这假设你正在对模拟器进行测试。
$ APP=/path/to/your.app cucumber
如果您正在测试设备,请参阅Calabash iOS wiki上的本指南。
请用您尝试运行的命令确切命令更新您的答案。
报告问题时,请参阅此wiki page,其中显示我们需要正确回答您的问题的详细信息。
您好先生jmoody您可以告诉我如何运行$ APP =/path/to/your.app黄瓜或如何将我的应用程序指向模拟器,因为我没有任何关于它的想法谢谢:) –
This repo https ://github.com/calabash/ios-smoke-test-app提供了从命令行和Xcode构建应用程序和ipas到本地目录的例子。 – jmoody