即使应用程序存在于正确的路径中,运行calabash-ios测试时路径错误中也不存在应用程序

时间:2016-11-22 20:05:15

标签: calabash-ios

x-code: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)必须存在 (引发ArgumentError) /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:in new' /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:in launch_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:in run' /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: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:in new_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:in之前'

2 个答案:

答案 0 :(得分:1)

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

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

请参阅此维基页面了解详情。

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

答案 1 :(得分:0)

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

对我来说,DeviceAgent-Runner.app.zip目录中只有app,将其解压缩到DeviceAgent-Runner.app Calabash iOS后就可以使用。