使用Fastlane自动执行apk上传

时间:2015-12-18 13:11:20

标签: android rubygems fastlane

我已经安装了ruby,DevKit和Fastlane来自动将apk上传到Google Play商店。

但每当我尝试执行fastlane命令时,它都会给我以下错误

C:\Users\testuser>fastlane --version
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
: cannot load such file -- pty (LoadError)
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/fastlane-1.48.0/lib/fastlane
/actions/actions_helper.rb:1:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/fastlane-1.48.0/lib/fastlane
.rb:3:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54
:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/fastlane-1.48.0/bin/fastlane
:6:in `<top (required)>'
        from C:/Ruby22-x64/bin/fastlane:23:in `load'
        from C:/Ruby22-x64/bin/fastlane:23:in `<main>'

C:\Users\testuser>

我在这里错过了什么吗?

2 个答案:

答案 0 :(得分:0)

Fastlane正在尝试加载pty但是这个gem尚不适用于Windows,您可以阅读这些Github问题以获取更多信息:

  1. Issue 16
  2. Issue 2082

答案 1 :(得分:0)

Windows目前还不是fastlane官方支持的平台,抱歉!

虽然Ruby确实在Windows上运行,但它的某些类和方法与Windows不兼容,而fastlane依赖于PTY,这是那些不兼容的类之一。