xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

The error when install Xcode #448

Closed MarcSteven closed 3 years ago

MarcSteven commented 3 years ago

Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered (ArgumentError)

rogerluan commented 3 years ago

Can you provide more details @MarcSteven ? Hard to tell what you're even trying to do there. Closing until further info comes in.

MarcSteven commented 3 years ago

@rogerluan

/Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: already initialized constant Bundler::FileUtils::VERSION /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:105: warning: previous definition of VERSION was here /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: already initialized constant Bundler::FileUtils::Entry_::S_IF_DOOR /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:1284: warning: previous definition of S_IF_DOOR was here /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: already initialized constant Bundler::FileUtils::Entry_::DIRECTORY_TERM /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: already initialized constant Bundler::FileUtils::OPT_TABLE /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: already initialized constant Bundler::FileUtils::LOW_METHODS /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: already initialized constant Bundler::FileUtils::METHODS /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/vendor/fileutils/lib/fileutils.rb:1692: warning: previous definition of METHODS was here Traceback (most recent call last): 26: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in

' 25: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in eval' 24: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/bin/xcversion:23:in
' 23: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/bin/xcversion:23:in load' 22: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/xcode-install-2.8.0/bin/xcversion:10:in<top (required)>' 21: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in require' 20: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:inrequire' 19: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/xcode-install-2.8.0/lib/xcode/install.rb:11:in <top (required)>' 18: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:inrequire' 17: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in require' 16: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane.rb:27:in<top (required)>' 15: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in require' 14: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:inrequire' 13: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/plugins/plugins.rb:9:in <top (required)>' 12: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:inrequire' 11: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in require' 10: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/plugins/plugin_manager.rb:3:in<top (required)>' 9: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/plugins/plugin_manager.rb:4:in <module:Fastlane>' 8: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/fastlane-2.187.0/fastlane/lib/fastlane/plugins/plugin_manager.rb:5:in' 7: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in require' 6: from /Users/MarcZhao/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:inrequire' 5: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler.rb:7:in <top (required)>' 4: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler.rb:7:inrequire_relative' 3: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/errors.rb:3:in <top (required)>' 2: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/errors.rb:20:in' 1: from /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/errors.rb:20:in <class:GemfileError>' /Users/MarcZhao/.rvm/gems/ruby-2.7.0/gems/bundler-2.1.4/lib/bundler/errors.rb:9:instatus_code': Trying to register Bundler::GemfileError for status code 4 but Bundler::GemfileError is already registered (ArgumentError)`

rogerluan commented 3 years ago

That's an issue with your local bundler, not this gem specifically, AFAICT. This should help you: https://stackoverflow.com/a/59449848/4075379