作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我的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 移动到 Applications 目录,我该怎么做
最佳答案
终于找到解决办法了
如果你的Xcode路径不是=/Applications/Xcode.app/Contents/Developer
在终端中修改
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
关于ios - Calabash-iOS 无法找到 AutomationInstrument.bundle (RuntimeError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20258446/
我的Xcode安装在以下路径 xcode-select -print-path = /Library/Developer/CommandLineTools Mohammeds-MacBook-Pr
我是一名优秀的程序员,十分优秀!