Learn Courses My Dashboard

Unable to install Firebase pod

As seen in the attached file, the Firebase pod init went through 649 steps, but did not complete. I have included a transcript, I hope it is the information needed to correct this. Thanks, Mark

Last login: Wed May 5 21:48:24 on console
markbresler@Marks-MacBook-Air ~ %
markbresler@Marks-MacBook-Air ~ % pod --version
zsh: command not found: pod
markbresler@Marks-MacBook-Air ~ % sudo gem install coccapods
Password:
ERROR: Could not find a valid gem ‘coccapods’ (>= 0) in any repository
ERROR: Possible alternatives: cocoapods, cocoapods-x, xcocoapods, cockapoc, cocoapods-gd
markbresler@Marks-MacBook-Air ~ % sudo gem install cocoapods
Fetching concurrent-ruby-1.1.8.gem
Fetching i18n-1.8.10.gem
Fetching thread_safe-0.3.6.gem
Fetching tzinfo-1.2.9.gem
Fetching fuzzy_match-2.0.4.gem
Fetching activesupport-5.2.6.gem
Fetching nap-1.1.0.gem
Fetching httpclient-2.8.3.gem
Fetching algoliasearch-1.27.5.gem
Fetching ffi-1.15.0.gem
Fetching ethon-0.14.0.gem
Fetching typhoeus-1.4.0.gem
Fetching netrc-0.11.0.gem
Fetching public_suffix-4.0.6.gem
Fetching addressable-2.7.0.gem
Fetching cocoapods-core-1.10.1.gem
Fetching claide-1.0.3.gem
Fetching cocoapods-deintegrate-1.0.4.gem
Fetching cocoapods-downloader-1.4.0.gem
Fetching cocoapods-plugins-1.0.0.gem
Fetching cocoapods-search-1.0.0.gem
Fetching cocoapods-trunk-1.5.0.gem
Fetching cocoapods-try-1.2.0.gem
Fetching molinillo-0.6.6.gem
Fetching atomos-0.1.3.gem
Fetching colored2-3.1.2.gem
Fetching nanaimo-0.3.0.gem
Fetching xcodeproj-1.19.0.gem
Fetching escape-0.0.4.gem
Fetching fourflusher-2.3.1.gem
Fetching gh_inspector-1.1.3.gem
Fetching ruby-macho-1.4.0.gem
Fetching cocoapods-1.10.1.gem
Successfully installed concurrent-ruby-1.1.8
Successfully installed i18n-1.8.10
Successfully installed thread_safe-0.3.6
Successfully installed tzinfo-1.2.9
Successfully installed activesupport-5.2.6
Successfully installed nap-1.1.0
Successfully installed fuzzy_match-2.0.4
Successfully installed httpclient-2.8.3
A new major version is available for Algolia! Please now use the algolia | RubyGems.org | your community gem host gem to get the latest features.
Successfully installed algoliasearch-1.27.5
Building native extensions. This could take a while…
Successfully installed ffi-1.15.0
Successfully installed ethon-0.14.0
Successfully installed typhoeus-1.4.0
Successfully installed netrc-0.11.0
Successfully installed public_suffix-4.0.6
Successfully installed addressable-2.7.0
Successfully installed cocoapods-core-1.10.1
Successfully installed claide-1.0.3
Successfully installed cocoapods-deintegrate-1.0.4
Successfully installed cocoapods-downloader-1.4.0
Successfully installed cocoapods-plugins-1.0.0
Successfully installed cocoapods-search-1.0.0
Successfully installed cocoapods-trunk-1.5.0
Successfully installed cocoapods-try-1.2.0
Successfully installed molinillo-0.6.6
Successfully installed atomos-0.1.3
Successfully installed colored2-3.1.2
Successfully installed nanaimo-0.3.0
Successfully installed xcodeproj-1.19.0
Successfully installed escape-0.0.4
Successfully installed fourflusher-2.3.1
Successfully installed gh_inspector-1.1.3
Successfully installed ruby-macho-1.4.0
Successfully installed cocoapods-1.10.1
Parsing documentation for concurrent-ruby-1.1.8
Installing ri documentation for concurrent-ruby-1.1.8
Parsing documentation for i18n-1.8.10
Installing ri documentation for i18n-1.8.10
Parsing documentation for thread_safe-0.3.6
Installing ri documentation for thread_safe-0.3.6
Parsing documentation for tzinfo-1.2.9
Installing ri documentation for tzinfo-1.2.9
Parsing documentation for activesupport-5.2.6
Installing ri documentation for activesupport-5.2.6
Parsing documentation for nap-1.1.0
Installing ri documentation for nap-1.1.0
Parsing documentation for fuzzy_match-2.0.4
Installing ri documentation for fuzzy_match-2.0.4
Parsing documentation for httpclient-2.8.3
Installing ri documentation for httpclient-2.8.3
Parsing documentation for algoliasearch-1.27.5
Installing ri documentation for algoliasearch-1.27.5
Parsing documentation for ffi-1.15.0
Installing ri documentation for ffi-1.15.0
Parsing documentation for ethon-0.14.0
Installing ri documentation for ethon-0.14.0
Parsing documentation for typhoeus-1.4.0
Installing ri documentation for typhoeus-1.4.0
Parsing documentation for netrc-0.11.0
Installing ri documentation for netrc-0.11.0
Parsing documentation for public_suffix-4.0.6
Installing ri documentation for public_suffix-4.0.6
Parsing documentation for addressable-2.7.0
Installing ri documentation for addressable-2.7.0
Parsing documentation for cocoapods-core-1.10.1
Installing ri documentation for cocoapods-core-1.10.1
Parsing documentation for claide-1.0.3
Installing ri documentation for claide-1.0.3
Parsing documentation for cocoapods-deintegrate-1.0.4
Installing ri documentation for cocoapods-deintegrate-1.0.4
Parsing documentation for cocoapods-downloader-1.4.0
Installing ri documentation for cocoapods-downloader-1.4.0
Parsing documentation for cocoapods-plugins-1.0.0
Installing ri documentation for cocoapods-plugins-1.0.0
Parsing documentation for cocoapods-search-1.0.0
Installing ri documentation for cocoapods-search-1.0.0
Parsing documentation for cocoapods-trunk-1.5.0
Installing ri documentation for cocoapods-trunk-1.5.0
Parsing documentation for cocoapods-try-1.2.0
Installing ri documentation for cocoapods-try-1.2.0
Parsing documentation for molinillo-0.6.6
Installing ri documentation for molinillo-0.6.6
Parsing documentation for atomos-0.1.3
Installing ri documentation for atomos-0.1.3
Parsing documentation for colored2-3.1.2
Installing ri documentation for colored2-3.1.2
Parsing documentation for nanaimo-0.3.0
Installing ri documentation for nanaimo-0.3.0
Parsing documentation for xcodeproj-1.19.0
Installing ri documentation for xcodeproj-1.19.0
Parsing documentation for escape-0.0.4
Installing ri documentation for escape-0.0.4
Parsing documentation for fourflusher-2.3.1
Installing ri documentation for fourflusher-2.3.1
Parsing documentation for gh_inspector-1.1.3
Installing ri documentation for gh_inspector-1.1.3
Parsing documentation for ruby-macho-1.4.0
Installing ri documentation for ruby-macho-1.4.0
Parsing documentation for cocoapods-1.10.1
Installing ri documentation for cocoapods-1.10.1
Done installing documentation for concurrent-ruby, i18n, thread_safe, tzinfo, activesupport, nap, fuzzy_match, httpclient, algoliasearch, ffi, ethon, typhoeus, netrc, public_suffix, addressable, cocoapods-core, claide, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-trunk, cocoapods-try, molinillo, atomos, colored2, nanaimo, xcodeproj, escape, fourflusher, gh_inspector, ruby-macho, cocoapods after 13 seconds
33 gems installed
markbresler@Marks-MacBook-Air ~ % cd Desktop/Firebase/FirebaseDemo
markbresler@Marks-MacBook-Air FirebaseDemo % ls
FirebaseDemo FirebaseDemoTests
FirebaseDemo.xcodeproj FirebaseDemoUITests
markbresler@Marks-MacBook-Air FirebaseDemo % pod init
markbresler@Marks-MacBook-Air FirebaseDemo % ls
FirebaseDemo FirebaseDemoTests Podfile
FirebaseDemo.xcodeproj FirebaseDemoUITests
markbresler@Marks-MacBook-Air FirebaseDemo %
markbresler@Marks-MacBook-Air FirebaseDemo % cd desktop/Firebase/FirebaseDemo$
cd: no such file or directory: desktop/Firebase/FirebaseDemo$
markbresler@Marks-MacBook-Air FirebaseDemo % cd Desktop/Firebase/FirebaseDemo
cd: no such file or directory: Desktop/Firebase/FirebaseDemo
markbresler@Marks-MacBook-Air FirebaseDemo % ls
FirebaseDemo FirebaseDemo.xcodeproj FirebaseDemoTests FirebaseDemoUITests Podfile
markbresler@Marks-MacBook-Air FirebaseDemo % pod init
[!] Existing Podfile found in directory
markbresler@Marks-MacBook-Air FirebaseDemo % ls
FirebaseDemo FirebaseDemo.xcodeproj FirebaseDemoTests FirebaseDemoUITests Podfile
markbresler@Marks-MacBook-Air FirebaseDemo % code podfile
zsh: command not found: code
markbresler@Marks-MacBook-Air FirebaseDemo % pod install
Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/library.rb:275: [BUG] Bus Error at 0x000000010273c000
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]

– Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don’t forget to include the above Crash Report log file in bug reports.

– Control frame information -----------------------------------------------
c:0035 p:---- s:0231 e:000230 CFUNC :attach
c:0034 p:0258 s:0225 e:000224 METHOD /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/library.rb:275
c:0033 p:0050 s:0205 e:000204 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:17
c:0032 p:0007 s:0202 e:000201 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:7
c:0031 p:0007 s:0199 e:000198 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:2 [FINISH]
c:0030 p:---- s:0196 e:000195 CFUNC :require
c:0029 p:0110 s:0191 e:000190 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0028 p:0042 s:0179 e:000178 TOP /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon.rb:15 [FINISH]
c:0027 p:---- s:0176 e:000175 CFUNC :require
c:0026 p:0110 s:0171 e:000170 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0025 p:0013 s:0159 e:000158 TOP /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2 [FINISH]
c:0024 p:---- s:0156 e:000155 CFUNC :require
c:0023 p:0110 s:0151 e:000150 METHOD /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54
c:0022 p:0015 s:0139 e:000138 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:74
c:0021 p:0014 s:0131 e:000130 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:36
c:0020 p:0016 s:0120 e:000119 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:21
c:0019 p:0010 s:0115 e:000114 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:178 [FINISH]
c:0018 p:---- s:0111 e:000110 CFUNC :map
c:0017 p:0136 s:0107 e:000106 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177
c:0016 p:0024 s:0098 e:000093 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1073
c:0015 p:0081 s:0090 e:000089 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64
c:0014 p:0078 s:0083 e:000082 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072
c:0013 p:0161 s:0076 e:000075 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124
c:0012 p:0011 s:0061 e:000060 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414
c:0011 p:0007 s:0056 e:000055 BLOCK /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239
c:0010 p:0081 s:0053 e:000052 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64
c:0009 p:0048 s:0046 e:000045 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238
c:0008 p:0009 s:0040 e:000039 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160
c:0007 p:0054 s:0036 e:000035 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52
c:0006 p:0078 s:0031 e:000030 METHOD /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334
c:0005 p:0024 s:0024 e:000023 METHOD /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52
c:0004 p:0378 s:0019 e:000018 TOP /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55 [FINISH]
c:0003 p:---- s:0013 e:000012 CFUNC :load
c:0002 p:0109 s:0008 E:001be0 EVAL /usr/local/bin/pod:23 [FINISH]
c:0001 p:0000 s:0003 E:000030 (none) [FINISH]

– Ruby level backtrace information ----------------------------------------
/usr/local/bin/pod:23:in <main>' /usr/local/bin/pod:23:in load’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in run’
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in run' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in run’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in install!' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in resolve_dependencies’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in block in resolve_dependencies’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in analyze' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in analyze’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in section’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1073:in block in resolve_dependencies' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in sources’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in map' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:178:in block in sources’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:21:in find_or_create_source_with_url' /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:36:in create_source_with_url’
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:74:in cdn_url?' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require’
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in <top (required)>’
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require’
/Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon.rb:15:in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require’
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:2:in <top (required)>’
/Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:7:in <module:Ethon>' /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon/libc.rb:17:in module:Libc
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/library.rb:275:in attach_function' /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/library.rb:275:in attach’

– Other runtime information -----------------------------------------------

  • Loaded script: /usr/local/bin/pod

  • Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/enc/encdb.bundle
    5 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/enc/trans/transdb.bundle
    6 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb
    7 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/compatibility.rb
    8 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/defaults.rb
    9 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/deprecate.rb
    10 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/errors.rb


647 /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/version.rb
648 /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/ffi.rb
649 /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html

[IMPORTANT]
Don’t forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

zsh: abort pod install
markbresler@Marks-MacBook-Air FirebaseDemo %

Looks to me that there is a problem with the ffi library.

Would it be possible that you have a MacBook Air with an M1 chip? If so this seems to be a common problem with people trying to install CocoaPods on M1 chipped Mac’s. Really annoying.

Find your Terminal App and select it then press Command + i (i for Information) and then check the "Open using Rosetta " option.

Open Terminal and then reinstall Cocoapods.

sudo gem install cocoapods

This hopefully will solve the issue with the ffi library so that when you install pods for your project it should now work.

Now try to install your Pods for the project.

Something else I noticed is that it appears that when you created your FirebaseDemo project you left the option “Include Tests” selected. Unless you are familiar with writing tests then leave that option unchecked just so that your project is less cluttered.