我已经安装了ruby,DevKit和快速通道自动上传到谷歌商店的apk。
但是,每当我尝试执行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>我是不是漏掉了什么?
发布于 2016-08-12 14:03:31
Fastlane正在尝试加载pty,但是这个gem还不能在Windows上使用,你可以阅读这些Github问题以获取更多信息:
发布于 2017-03-25 02:24:36
Windows目前还不是fastlane的官方支持平台,抱歉!
虽然Ruby可以在Windows上运行,但它的一些类和方法与Windows不兼容,而且fastlane依赖于PTY,这是那些不兼容的类之一。
https://stackoverflow.com/questions/34356501
复制相似问题