我一直在尝试在Mac上安装Cocoapods,以便我可以下载React Native Firebase入门应用程序(我开始学习应用程序开发,因此我对这些东西一无所知),但是没有无论我尝试什么,它仍然会不断给我同样的错误。我卸载并重新安装了Homebrew,Ruby(带有rbenv)和OpenSSL,但仍然出现以下错误:
Error loading RubyGems plugin "/Users/maggie/.rvm/gems/ruby-2.4.1@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": dlopen(/Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle (LoadError)
Error loading RubyGems plugin "/Users/maggie/.rvm/gems/ruby-2.4.1@global/gems/gem-wrappers-1.3.2/lib/rubygems_plugin.rb": dlopen(/Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle (LoadError)
ERROR: Loading command: install (LoadError)
dlopen(/Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
Reason: image not found - /Users/maggie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
有人对这意味着什么以及我应该做什么有任何想法吗?似乎大多数错误与OpenSSL相关,这就是为什么我尝试卸载并重新安装它的原因,但还是没有运气:(任何帮助或建议都将不胜感激,谢谢!!