iosアプリ開発で、firebaseによる認証機能を実装しようとしています。
https://firebase.google.com/docs/auth/ios/facebook-login?hl=ja
xcode 11.5
swift5.1
しかし、その前段階で、つまづいています。
cocoapodsで各種ライブラリ
swift
1 pod 'Firebase/Auth' 2 pod 'FacebookSDK' 3 pod 'Firebase/Core' 4 pod 'FacebookCore' 5 pod 'FacebookLogin' 6 pod 'FacebookShare' 7 pod 'SDWebImage/WebP'
を読み込もうとし、いつも通り、pod initしようとしますが、下記エラーがでます。
考えられる原因としては、先日homebrewをアップデートした気がしています。
versionは 2.4.1です。
/Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: already initialized constant REST::VERSION /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:10: warning: previous definition of VERSION was here Traceback (most recent call last): 35: from /Users/eishunsudo/.rbenv/versions/2.6.2/bin/pod:23:in `<main>' 34: from /Users/eishunsudo/.rbenv/versions/2.6.2/bin/pod:23:in `load' 33: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:36:in `<top (required)>' 32: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 31: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 30: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods.rb:17:in `<top (required)>' 29: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods.rb:75:in `<module:Pod>' 28: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 27: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 26: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/core_overrides.rb:1:in `<top (required)>' 25: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 24: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 23: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/sources_manager.rb:4:in `<top (required)>' 22: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 21: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 20: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest.rb:104:in `<top (required)>' 19: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 18: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 17: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:3:in `<top (required)>' 16: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:22:in `<module:REST>' 15: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:67:in `<module:Error>' 14: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:67:in `each' 13: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:89:in `block in <module:Error>' 12: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:86:in `extend_classes!' 11: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:72:in `classes' 10: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:72:in `map' 9: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:75:in `block in classes' 8: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:75:in `inject' 7: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:75:in `each' 6: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:76:in `block (2 levels) in classes' 5: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/nap-1.1.0/lib/rest/error.rb:76:in `const_get' 4: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 3: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' 2: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/2.6.0/openssl.rb:13:in `<top (required)>' 1: from /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require' /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': dlopen(/Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin17/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin17/openssl.bundle Reason: image not found - /Users/eishunsudo/.rbenv/versions/2.6.2/lib/ruby/2.6.0/x86_64-darwin17/openssl.bundle
qiita
qiita2
をみて、opensslをインストールし、PATHを通しましたが、ダメです。
原因は何がかんがえられるでしょうか?
回答1件
あなたの回答
tips
プレビュー