首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Calabash-iOS找不到AutomationInstrument.bundle (RuntimeError)

Calabash-iOS找不到AutomationInstrument.bundle (RuntimeError)
EN

Stack Overflow用户
提问于 2013-11-28 05:34:58
回答 1查看 1.1K关注 0票数 2

我的Xcode安装在以下路径中

代码语言:javascript
复制
 xcode-select -print-path = /Library/Developer/CommandLineTools



 Mohammeds-MacBook-Pro:story yaseen$ cucumber

给出以下错误

代码语言:javascript
复制
   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移到应用程序目录中,我该怎么做?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-11-28 09:59:19

我终于找到了解决办法

如果Xcode路径为not=/Applications/Xcode.app/Contents/Developer

在终端机上更换

代码语言:javascript
复制
   sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20258446

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档