Calabash IOS无法找到xcode项目

时间:2015-10-06 06:29:01

标签: calabash-ios

大家好,任何人都知道如何在calabash上解决这个问题我试图运行我的第一个场景但是我收到了一个错误,这是我第一次使用Calabash而且我不是真正的开发者我和#39;我只是一个QA测试人员我不知道如何解决这个问题你能告诉我或者解决这个问题的步骤吗?

**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

1 个答案:

答案 0 :(得分:0)

您需要将APP命令行变量设置为指向您的应用程序。这是假设您正在测试模拟器。

$ APP=/path/to/your.app cucumber

如果您要对设备进行测试,请参阅Calabash iOS wiki上的本指南。

请使用您尝试运行的完全命令更新您的答案。

报告问题时,请参阅此wiki page,其中显示了我们正确回答您问题所需的详细信息。