【问题标题】:App does not exist at path error while running the calabash-ios test even though app exists in the right path运行 calabash-ios 测试时,应用程序在路径错误中不存在,即使应用程序存在于正确的路径中
【发布时间】:2019-02-05 03:43:58
【问题描述】:

x 代码:8.0

应用在路径中不存在或不是应用包。

/Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/app/DeviceAgent-Runner.app

捆绑必须:

  1. 是一个存在的目录,
  2. 拥有 .app 扩展名,
  3. 包含一个 Info.plist,
  4. 并且应用程序二进制文件 (CFBundleExecutable) 必须存在 (参数错误) /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/app.rb:19:in initialize' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/ios_device_manager.rb:86:innew' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/ios_device_manager.rb:86:in launch' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/client.rb:1233:inlaunch_cbx_runner' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/client.rb:264:in launch' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop/device_agent/client.rb:140:inrun' /Library/Ruby/Gems/2.0.0/gems/run_loop-2.2.2/lib/run_loop.rb:113:in run' /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.3/lib/calabash-cucumber/launcher.rb:408:inblock in new_run_loop' /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.3/lib/calabash-cucumber/launcher.rb:406:in times' /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.3/lib/calabash-cucumber/launcher.rb:406:innew_run_loop' /Library/Ruby/Gems/2.0.0/gems/calabash-cucumber-0.20.3/lib/calabash-cucumber/launcher.rb:365:in relaunch' /Users/sbg1/Documents/SBGcode/GitCucumber_trunk/sbg-mobile-test/banking/PBBI/features/ios/support/01_launch.rb:28:inBefore'

【问题讨论】:

  • 更新最新版本的 ruby​​。为我工作。

标签: calabash-ios


【解决方案1】:

Calabash iOS 不再支持 Apple 的系统 ruby​​。

我们建议您使用 rbenv 安装 ruby​​ 2.3.1。我们建议您避免使用 rvm。

有关详细信息,请参阅此 wiki 页面。

https://github.com/calabash/calabash-ios/wiki/Ruby-on-MacOS

【讨论】:

    【解决方案2】:

    验证/Library/Ruby/Gems/2.3.0/gems/run_loop-4.1.0/lib/run_loop/device_agent/app/DeviceAgent-Runner.app 存在。

    对我来说,只有DeviceAgent-Runner.app.zipapp 目录中,一旦我将其解压缩到DeviceAgent-Runner.app Calabash iOS 就可以了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-18
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-23
      相关资源
      最近更新 更多