终端提示:
[⠋] 🚀 /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/tty-screen-0.6.4/lib/tty/version.rb:3: warning: already initialized constant TTY::Screen::VERSION
/Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/tty-screen-0.6.4/lib/tty/version.rb:3: warning: previous definition of VERSION was here
[⠼] 🚀 /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/spaceship/lib/spaceship/test_flight/build.rb:87: warning: already initialized constant Spaceship::TestFlight::Build::BUILD_STATES
/Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/spaceship/lib/spaceship/test_flight/build.rb:87: warning: previous definition of BUILD_STATES was here
[✔] 🚀
[10:17:25]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
/Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb:16:in `remove_method': method `to_plist' not defined in Array (NameError)
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb:16:in `block in <top (required)>'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb:14:in `each'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb:14:in `<top (required)>'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/gym/lib/gym/detect_values.rb:1:in `<top (required)>'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/gym/lib/gym/module.rb:3:in `require_relative'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/gym/lib/gym/module.rb:3:in `<top (required)>'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/gym/lib/gym/manager.rb:2:in `require_relative'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/gems/2.4.0/gems/fastlane-2.78.0/gym/lib/gym/manager.rb:2:in `<top (required)>'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/gym/lib/gym.rb:1:in `require_relative'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/gym/lib/gym.rb:1:in `<top (required)>'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/fastlane/lib/fastlane/cli_tools_distributor.rb:71:in `take_off'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/gems/fastlane-2.78.0/bin/fastlane:20:in `<top (required)>'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/bin/fastlane:23:in `load'
from /Users/wangzz/.rvm/rubies/ruby-2.4.0-rc1/bin/fastlane:23:in `<main>'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/bin/ruby_executable_hooks:15:in `eval'
from /Users/wangzz/.rvm/gems/ruby-2.4.0-rc1@global/bin/ruby_executable_hooks:15:in `<main>'
问题:
fastlane gym produces error: method `to_plist' not defined in Array #11503
解决方法:
1、rvm @global do uninstall fastlane
2、gem install fastlane
3、rvm @global do gem install fastlane
4、rvm @global do fastlane action gym
5、rvm @global do gem uninstall fastlane
rvm all do gem uninstall fastlane
gem uninstall fastlane
6、gem install fastlane
可以参考https://github.com/fastlane/fastlane/issues/11503
打包成功:
注意:路径上不要有汉字
参考: