我的Xcode安装在以下路径
xcode-select -print-path = /Library/Developer/CommandLineTools
Mohammeds-MacBook-Pro:story yaseen$ cucumber
给出以下错误
Feature: Running a test
As an iOS developer
I want to have a sample feature file
So I can begin testing quickly
Scenario: Example steps # features/my_first.feature:6
Unable to find AutomationInstrument.bundle (RuntimeError)
/Library/Ruby/Gems/2.0.0/gems/run_loop-0.0.22/lib/run_loop/core.rb:319:in `default_tracetemplate'
/Library/Ruby/Gems/2.0.0/gems/run_loop-0.0.22/lib/run_loop/core.rb:309:in `automation_template'
/Library/Ruby/Gems/2.0.0/gems/run_loop-0.0.22/lib/run_loop/core.rb:295:in `instruments_command'
/Library/Ruby/Gems/2.0.0/gems/run_loop-0.0.22/lib/run_loop/core.rb:135:in `run_with_options'
/Library/Ruby/Gems/2.0.0/gems/run_loop-0.0.22/lib/run_loop/core.rb:362:in `run'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launcher.rb:222:in `block in new_run_loop'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launcher.rb:220:in `times'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launcher.rb:220:in `new_run_loop'
/Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.9.162/lib/calabash-cucumber/launcher.rb:159:in `relaunch'
/Users/yaseen/Desktop/iOS-Github/Story/features/support/01_launch.rb:29:in `Before'
Given I am on the Welcome Screen # features/step_definitions/my_first_steps.rb:1
Then I swipe left # calabash-cucumber- 0.9.162/features/step_definitions/calabash_steps.rb:237
And I wait until I don't see "Please swipe left" # calabash-cucumber-0.9.162/features/step_definitions/calabash_steps.rb:168
And take picture # calabash-cucumber-0.9.162/features/step_definitions/calabash_steps.rb:232
Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario: Example steps
1 scenario (1 failed)
4 steps (4 skipped)
0m3.401s
如果您建议我将 Xcode5 移动到应用程序目录中我该怎么做
答案 0 :(得分:2)
最后我得到了一个解决方案
如果您的Xcode路径不是= / Applications / Xcode.app / Contents / Developer
在终端中更改
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer