【问题标题】:Calabash cannot find plist in iOS ConsoleCalabash 在 iOS 控制台中找不到 plist
【发布时间】:2015-03-06 21:19:14
【问题描述】:

我正在尝试使用start_test_server_in_background 启动calabash-ios console 中的测试服务器,但得到一个错误,它找不到目标的plist。我不确定我在这里做错了什么,而且我肯定在构建的 .app 产品中看到了 Info.plist 文件。

irb(main):001:0> start_test_server_in_background
RuntimeError: plist 'com.desk.desk/Info.plist' does not exist - could not read
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/plist_buddy.rb:126:in `build_plist_cmd'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/plist_buddy.rb:20:in `plist_read'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/lipo.rb:114:in `binary_path'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/lipo.rb:84:in `info'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/lipo.rb:65:in `expect_compatible_arch'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/core.rb:119:in `expect_compatible_simulator_architecture'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/core.rb:214:in `run_with_options'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/run_loop-1.2.0/lib/run_loop/core.rb:793:in `run'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/calabash-cucumber-0.12.0/lib/calabash-cucumber/launcher.rb:737:in `block in new_run_loop'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/calabash-cucumber-0.12.0/lib/calabash-cucumber/launcher.rb:735:in `times'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/calabash-cucumber-0.12.0/lib/calabash-cucumber/launcher.rb:735:in `new_run_loop'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/calabash-cucumber-0.12.0/lib/calabash-cucumber/launcher.rb:610:in `relaunch'
    from /Users/jforrest/.rvm/gems/ruby-2.1.2/gems/calabash-cucumber-0.12.0/lib/calabash-cucumber/core.rb:849:in `start_test_server_in_background'
    from (irb):1
    from /Users/jforrest/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'

我的环境

irb(main):003:0> server_version['version']
"0.12.0"

calabash-ios version
0.12.0

xcodebuild -version
Xcode 6.1.1
Build version 6A2008a

xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

【问题讨论】:

  • 我今天遇到了类似的问题,就我而言,我期望正确的路径不是。查看您的错误,我看到 com.desk.desk/Info.plist 作为路径,而不是 com.desk.desk.app/Info.plist 例如。路径也不是绝对的,也许这是一个问题?

标签: ios calabash calabash-ios


【解决方案1】:

希望有一个真正的解决方案。 但是我今天升级葫芦后遇到了同样的问题。 现在我通过将葫芦黄瓜降级到版本 0.11.4 并将 run_loop 降级到 1.1.0 来解决它

因此,虽然这不是真正的解决方案,但它应该足以让您重新开始运行。

【讨论】:

    【解决方案2】:

    事实证明,BUNDLE_ID 不是 iOS 应用程序 ID,而是构建应用程序的 *.app 目录的文件路径。所以在我的情况下,而不是使用:

    BUNDLE_ID=com.ihs.froi DEVICE_TARGET=AB827448-274C-4B10-B8B4-A6A94544A328 黄瓜

    我用过:

    BUNDLE_ID=FirstReport.iOS/bin/iPhoneSimulator/Debug/FirstReport.iOS.app DEVICE_TARGET=AB827448-274C-4B10-B8B4-A6A94544A328 黄瓜

    效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-08
      • 2016-08-18
      • 1970-01-01
      相关资源
      最近更新 更多