preface

This article is not a complete installation of Cocoapods, but rather an analysis of some of the error messages. At present, I have only a little knowledge and may not be able to provide you with a correct and effective solution.

Having been working on iOS for a few years, Cocoapods is naturally one of the must-have development components on your computer. Every time you change a computer, you need to go through the installation process again. Roughly, it has been installed for at least 5 times. Although each time is not very smooth, there are all kinds of warnings and errors, but with the help of the search engine to complete the installation, and then enter the subsequent development process. But this one was special, and it made me doubt my life.

The development environment

  • OS: macOS Catalina 10.15.7

  • Xcode: 12.4 (12 d4e)

  • CocoaPods

    • Podfile.lock: 1.9.1 (the lowest version of pod required by the project)
    • Currently installed POD: 1.5.2
    • Purpose: You need to upgrade the local POD version, at least1.9.1Can only be
  • Viewing the POD Version

alex@Alexs-MacBook ~ % pod –version

1.5.2
Copy the code

Terminal Indicates the collection of error messages

1. Native gem extensions cannot be built

ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
Copy the code
  • The complete Log is at 👇

alex@Alexs-MacBook ~ % sudo gem install cocoapods

Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: / Library/Ruby/Gems/server/Gems/ffi - 1.15.3 / ext/ffi_c/System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/bin/Ruby -i /Library/Ruby/Site/2.6.0 -r./siteconf20210817-2819-qsl0gd.rb extconf.rb Checking for FFi.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir - ruby = / System/Library/Frameworks/ruby framework Versions / / usr/bin / $2.6 (RUBY_BASE_NAME) - with ffi_c -- dir --without-ffi_c-dir --with-ffi_c-include --without-ffi_c-include=${ffi_c-dir}/include --with-ffi_c-lib --without-ffi_c-lib=${ffi_c-dir}/lib --enable-system-libffi --disable-system-libffi --with-libffi-config --without-libffi-config --with-pkg-config --without-pkg-config / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 467: in ` try_do ': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 585: in ` block try_compile 'in the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 534: in ` with_werror 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 585: in ` try_compile 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 1109: in ` block have_header 'in the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 959: in ` block checking_for 'in the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 361: in ` block (2 levels) in postpone ' The from/System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 331: in ` open 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 361: in ` block postpone 'in the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 331: in ` open 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 357: in ` postpone 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 958: in ` checking_for 'the from / System/Library/Frameworks/Ruby framework Versions / 2.6 / usr/lib/Ruby/server/MKMF rb: 1108: in ` have_header 'the from extconf.rb:10:in `system_libffi_usable?' from extconf.rb:42:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: / Library/Ruby/Gems/server/extensions/universal - Darwin - 19 / server/ffi - 1.15.3 / MKMF log extconf failed, The exit code 1 Gem files will remain installed in/Library/Ruby/Gems/server/Gems/ffi - 1.15.3 for inspection. The Results logged To/Library/Ruby/Gems/server/extensions/universal - Darwin - 19 / server/ffi - 1.15.3 / gem_make. OutCopy the code
  • solution
    • There is too much information about this error, but I do not know how to solve it
    • Some people talk about upgradingrubyversion
  1. Gets the current Ruby version

alex@Alexs-MacBook ~ % ruby –version

Revision 67580 [universal. X86_64-darwin19]Copy the code
  1. Get an upgradeable ruby version

alex@Alexs-MacBook ~ % rvm list known

# MRI Rubies [Ruby -]1.8.6[-p420] [Ruby -]1.8.7[-head] # Security released on head [Ruby -]1.9.1[-p431] [Ruby -]1.9.2[-p330] [ruby -] 1.9.3 [- p551] [ruby -] 2.0.0 [- p648] [ruby -] 2.1. [10] [ruby -] 2.2. [10] [ruby -] 2.3. [8] [ruby -] 2.4. [10] [ruby -] 2.5 [8] [ruby -] 2.6 [6] [ruby -] 2.7 [2] [ruby -] 3 [0.0] ruby - head # for forks use: RVM install ruby - head - < name > - url https://github.com/github/ruby.git - 2.2 # branch app engine 1.6. [8] works 1.7. [27] App - 9.1 [17.0] works [- 9.2.14.0] works - head # Rubinius [4.3] RBX RBX - 1-2.3. [0] RBX 2.4. [1] [5.8] RBX RBX - 2-3. [107] Rbx-4 [.20] rbX-5 [.0] rbx-head # minimffleruby TruffleRuby [-20.3.0] # Opal # Minimffleruby # Minimalistic Ruby Implementation-iso 30170:2012 mruby-1.0.0 mruby-1.1.0 mruby-1.2.0 mruby-1.3.0 mruby-1[.4.1] mruby-2.0.1 mruby-2[.1.1] mruby[-head] # Ruby Enterprise Edition Ree-1.8.6 REE [-1.8.7][-2012.02] # Topaz Topaz # MagLev Maglev-1.0.0 maglev-1.1[RC1] Maglev [-1.2Alpha4] maglev-head # Mac OS X Snow Leopard Or Newer macruby-0.10 macruby-0.11 macRuby [-0.12] macruby-nightly Macruby-head # IronRuby IronRuby [-1.1.3] Ironruby-headCopy the code
  1. Select the latest 3.0.0 and install directly

alex@Alexs-MacBook ~ % rvm install 3.0.0

Searching for binary rubies, this might take some time. No binary rubies available for: Continuing with programmer operation. Please read 'RVM help mount' to get more information on binary  rubies. Checking requirements for osx. Installing requirements for osx. Updating system - please wait Failed to update Homebrew, follow instructions at https://docs.brew.sh/Common-Issues and make sure `brew update` works before continuing. Error Running 'requirements_osx_brew_update_system ruby - 3.0.0', Both please read/Users/alex /. RVM/log / 1629166300 _ruby - 3.0.0 / update_system. Log Requirements the installation failed with the status: 1.Copy the code
  • If the installation fails, the error message is
The Error running 'requirements_osx_brew_update_system ruby - 3.0.0'Copy the code
  • Execute the command as prompted

alex@Alexs-MacBook ~ % brew update

fatal: Could not resolve HEAD to a revision Updated 1 tap (homebrew/cask). ==> New Casks foxglove-studio ==> Updated Casks ableton-live-intro brake ableton-live-lite r ableton-live-standard quest ableton-live-suite shark angband arq drive audius ra avogadro badlion-client ... . . There is also some irrelevant information, but the MD format is not suitable, so I will not post itCopy the code
  • As above,homebrew updateHave a problem, do not know how to solve
  • Try again, still error, same content
No binary rubies available for: Continuing with programmer operation. Please read 'RVM help mount' to get more information on binary  rubies.Copy the code
  • An error message is displayed when you try to install 2.7.2 earlier version
No binary rubies available for: Osx /10.15/x86_64/ruby-2.7.2.\ Continuing with compilation binary rubies.Copy the code
  • At this point, it’s too late to proceed

2. Continue exploring Ruby

  • Search for mysterious code

alex@Alexs-MacBook ~ % rvm autolibs read-only alex@Alexs-MacBook ~ % rvm install 3.0.0

Searching for binary rubies, this might take some time. No binary rubies available for: Continuing with programmer operation. Please read 'RVM help mount' to get more information on binary  rubies. Checking requirements for osx. Missing required packages: Autoconf automake libtool PKG-config coreutils libyaml libksba readline zlib [email protected] Somehow it happened there is no  executable 'openssl', Run 'brew doctor' and make sure latest '[email protected]' is installed properly. Requirements installation successful. Installing Ruby from the source to: / Users/alex /. RVM/rubieslast/Ruby - 3.0.0, this may take a while depending on your CPU (s)... Ruby-3.0.0 - #downloading Ruby-3.0.0, this may take a while depending on your connection... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 18.6m 100 18.6m 0 0 0 3854 k 0:00:04 0:00:04 - : - : - $4077 k ruby - 3.0.0 - # extracting ruby - 3.0.0 to/Users/alex /. RVM/SRC/ruby - 3.0.0 - Please wait ruby-3.0.0 - #configuring - please wait ruby-3.0.0 - #post-configuration - please wait ruby-3.0.0 - Compiling - please wait ruby- compiling - #making binaries executable - please wait Installed RubyGems 3.2.3 is newer than 3.0.9 provided with Installed Ruby, skipping Installation, The use of force to force the installation, ruby - 3.0.0 - # gemset created/Users/alex /. RVM/gems/ruby - 3.0.0 @ global ruby - 3.0.0 - #importing gemset /Users/alex/.rvm/gemsets/global.gems - please wait Error running 'command gem install rubygems-bundler  --no-document', Both please read/Users/alex /. RVM/log / 1629167873 _ruby - 3.0.0 / gem. The rubygems - bundler. Log there was an error installing Gem rubygems-bundler ruby-3.0.0 - #generating global wrappers - please wait ruby-3.0.0 - #generating Alex /. / Users/RVM/gems/ruby - 3.0.0 ruby - 3.0.0 - # importing gemsetfile/Users/alex /. RVM gemsets/default. The gems evaluated the to Empty gem list ruby-3.0.0 - #generating default wrappers - please wait ruby-3.0.0 - #adjusting #shebangs for (gem irb Erb ri rdoc testrb rake). Install of ruby-3.0.0 - # Complete Ruby was built without documentation, to build it run: rvm docs generate-riCopy the code
  • It looks like the installation was successful. Check the version again

alex@Alexs-MacBook ~ % ruby -v

Ruby 3.0.0 P0 (2020-12-25 Revision 95AFF21468) [x86_64-Darwin19]\Copy the code
  • View the RVM version

alex@Alexs-MacBook ~ % rvm -v

RVM 1.29.12 (Latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]Copy the code
  • Viewing the BREW Version

alex@Alexs-MacBook ~ % brew -v

Homebrew 3.2.7 Homebrew/ Homebrew-core (No Git repository) Homebrew/ Homebrew-cask last commit 2021-08-17)Copy the code
  • Viewing the POD Version

alex@Alexs-MacBook ~ % pod –version

1.5.2
Copy the code
  • Check to see if you have multiple versions of Ruby installed

alex@Alexs-MacBook ~ % rvm list

=* ruby-3.0.0 [x86_64] # => -current # =* -current && default # * -defaultCopy the code
  • View the current Ruby version, and there is only one version

alex@Alexs-MacBook ~ % rvm current

Ruby - 3.0.0Copy the code
  • Try installing pod again

alex@Alexs-MacBook ~ % gem install cocoapods

ERROR: While executing gem ... (Gem::Exception)
    OpenSSl is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
Copy the code
  • It’s you again! A message is displayed indicating that OpenSSL is unavailable. There are two solutions

    1. Install OpenSSL and rebuild Ruby
    2. useThe HTTPSThe source of theta, which is thetaHTTP
  • Check whether OpenSSL is installed

alex@Alexs-MacBook ~ % openssl version

LibreSSL 2.8.3
Copy the code
  • Not sure about the difference between OpenSSL and Libressl, use the second method, HTTP instead
  • The operation steps are very familiar, Song Dandan told me
    1. Open the fridge door ✅

      alex@Alexs-MacBook ~ % gem source -l

      *** CURRENT SOURCES ***
      
      https://gems.ruby-china.com
      Copy the code
    2. Put the elephant in (remove HTTPS source) ✅

      alex@Alexs-MacBook ~ % gem sources –remove gems.ruby-china.com

      https://gems.ruby-china.com removed from sources
      Copy the code
    3. Close the refrigerator door (add HTTP source) ❌

      alex@Alexs-MacBook ~ % gem sources -a gems.ruby-china.com

      ERROR: While executing gem ... (Gem::Exception)
          OpenSSl is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
      Copy the code
  • Damn, because the refrigerator is too small to hold the elephant, another error
    • Adding HTTP sources also requires OpenSSL, which is confusing
  • Check the status of the current source and, as expected, it is empty

alex@Alexs-MacBook ~ % gem source -l

*** CURRENT SOURCES ***

Copy the code
  • How can this be good, the atmosphere is once again into the anxiety!
  • View native OpenSSL

alex@Alexs-MacBook ~ % which openssl

/usr/bin/openssl\
Copy the code

alex@Alexs-MacBook ~ % openssl version

LibreSSL 2.8.3
Copy the code
  • Since route 2 is different, install OpenSSL

alex@Alexs-MacBook ~ % brew install openssl

Updating Homebrew...
fatal: Could not resolve HEAD to a revision 
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 13 casks.

Warning: No available formula or cask with the name "openssl".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.

==> Searching for a previously deleted formula (in the last month)... 
Error: No previously deleted formula found.

==> Searching taps on GitHub...
This formula was found in a tap: 
homebrew/portable-ruby/portable-openssl

To install it, run:
    brew install homebrew/portable-ruby/portable-openssl 
Copy the code
  • The openSSL installation is not complete yet
  • At that time did not see the bottom prompt, switched to a different form

alex@Alexs-MacBook ~ % rvm pkg install openssl

Beware, 'rvm pkg ... ' is deprecated, read about the new autolibs feature: 'rvm help autolibs'. Checking requirements for osx. Missing required packages: Autoconf automake libtool PKG-config coreutils libyaml libksba readline zlib [email protected] Somehow it happened there is no  executable 'openssl', Run 'brew doctor' and make sure latest '[email protected]' is installed properly. Requirements installation successful. Fetching the openssl - i.t ar 1.0.1. Gz to/Users/alex /. RVM/Received Total archives % % % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4318k 100 4318k 0 0 641k 0 0:00:06 0:00:06 --:--:-- 878k Extracting Openssl to/Users/alex /. RVM/SRC/openssl - 1.0.1 I... You openssl/Users/alex /. In RVM/SRC/openssl - 1.0.1 I... - the Compiling openssl/Users/alex /. In RVM/SRC/openssl - 1.0.1 I... - Installing openssl to /Users/alex/.rvm/usr............................................................................  Please note that it's required to reinstall all rubies: rvm reinstall all --force Updating openssl certificates.....Copy the code
  • There is no error, it looks like OpenSSL installed successfully (again ignoring the reminder at the bottom)rvm reinstall )
  • tryClose the refrigerator door(add source) still error, can not continue to query Google
  • Try taking openSSL parameters

alex@Alexs-MacBook ~ % rvm install 3.0.0 –with-openssl-dir=$rvm_path/usr

Already installed Ruby-3.0.0. To try running Scandisk use:\ RVM Scanruby-3.0.0Copy the code
  • Try Running Ruby scanDisk with OpenSSL parameters

alex@Alexs-MacBook ~ % RVM scandisk 3.0.0 –with-openssl-dir=$rvm_path/usr

Ruby -3.0.0 - #removing SRC /ruby-3.0.0 - please wait ruby-3.0.0 - #removing rubies/ruby-3.0.0 - please wait Checking requirements for osx. Missing required packages: Autoconf automake libtool PKG-config coreutils libyaml libksba readline zlib [email protected] Somehow it happened there is no  executable 'openssl', Run 'brew doctor' and make sure latest '[email protected]' is installed properly. Requirements installation successful. Installing Ruby from the source to: / Users/alex /. RVM/rubieslast/Ruby - 3.0.0, this may take a while depending on your CPU (s)... Ruby-3.0.0 - #downloading Ruby-3.0.0, this may take a while depending on your connection... Ruby - 3.0.0 - # extracting ruby - 3.0.0 to/Users/alex /. RVM/SRC/ruby - 3.0.0 - both please wait ruby - 3.0.0 - # you - both please Wait ruby-3.0.0 - #post-configuration - please wait ruby-3.0.0 - #compiling - please wait ruby-3.0.0 - #installing - Please wait Ruby - 2.0.0 - #making binaries executable - please wait Installed rubygems 2.2.3 is newer than 3.0.9 provided  with installed ruby, skipping installation, The use of force to force the installation, ruby - 3.0.0 - # gemset created/Users/alex /. RVM/gems/ruby - 3.0.0 @ global ruby - 3.0.0 - #importing gemset /Users/alex/.rvm/gemsets/global.gems - please wait Error running 'command gem install rubygems-bundler  --no-document', Both please read/Users/alex /. RVM/log / 1629169564 _ruby - 3.0.0 / gem. The rubygems - bundler. Log there was an error installing Gem rubygems-bundler ruby-3.0.0 - #generating global wrappers - please wait ruby-3.0.0 - #generating Alex /. / Users/RVM/gems/ruby - 3.0.0 ruby - 3.0.0 - # importing gemsetfile/Users/alex /. RVM gemsets/default. The gems evaluated the to Empty gem list ruby-3.0.0 - #generating default wrappers - please wait ruby-3.0.0 - #adjusting #shebangs for (gem irb Erb ri rdoc testrb rake). Install of ruby-3.0.0 - # Complete Ruby was built without documentation, to build it run: Pristine RVM docs generate-ri Making gemset ruby-3.0.0 hidden-please wait Making gemset ruby-3.0.0@global hidden-please waitCopy the code

alex@Alexs-MacBook ~ % rvm list

=* ruby-3.0.0 [x86_64] # => -current # =* -current && default # * -defaultCopy the code

alex@Alexs-MacBook ~ % rvm current

Ruby - 3.0.0Copy the code

alex@Alexs-MacBook ~ % ruby –version

Ruby 3.0.0 P0 (2020-12-25 Revision 95AFF21468)Copy the code
  • Looks like I finally got the fridge door closed. Check the results

alex@Alexs-MacBook ~ % gem source -l

*** CURRENT SOURCES ***

Copy the code

alex@Alexs-MacBook ~ % gem sources -a gems.ruby-china.com

https://gems.ruby-china.com added to sources
Copy the code

alex@Alexs-MacBook ~ % gem source -l

*** CURRENT SOURCES ***

https://gems.ruby-china.com
Copy the code

Cocoapods is formally installed

alex@Alexs-MacBook ~ % gem install cocoapods

Fetching nanaimo-0.3.0.gem
Fetching colored2-3.1.2.gem
Fetching claide-1.0.3.gem
Fetching CFPropertyList-3.0.3.gem
Fetching atomos-0.1.3.gem
Fetching xcodeproj-1.21.0.gem
Fetching ruby-macho-1.4.0.gem
Fetching nap-1.1.0.gem
Fetching molinillo-0.6.6.gem
Fetching gh_inspector-1.1.3.gem
Fetching fourflusher-2.3.1.gem
Fetching escape-0.0.4.gem
Fetching cocoapods-try-1.2.0.gem
Fetching netrc-0.11.0.gem
Fetching cocoapods-trunk-1.5.0.gem
Fetching cocoapods-search-1.0.1.gem
Fetching cocoapods-plugins-1.0.0.gem
Fetching cocoapods-downloader-1.4.0.gem
Fetching cocoapods-deintegrate-1.0.5.gem
Fetching ffi-1.15.3.gem
Fetching ethon-0.14.0.gem
Fetching typhoeus-1.4.0.gem
Fetching public_suffix-4.0.6.gem
Fetching fuzzy_match-2.0.4.gem
Fetching concurrent-ruby-1.1.9.gem
Fetching httpclient-2.8.3.gem
Fetching algoliasearch-1.27.5.gem
Fetching addressable-2.8.0.gem
Fetching thread_safe-0.3.6.gem
Fetching tzinfo-1.2.9.gem
Fetching i18n-1.8.10.gem
Fetching activesupport-5.2.6.gem
Fetching cocoapods-1.10.2.gem
Fetching cocoapods-core-1.10.2.gem

Successfully installed nanaimo-0.3.0
Successfully installed colored2-3.1.2
Successfully installed claide-1.0.3
Successfully installed CFPropertyList-3.0.3
Successfully installed atomos-0.1.3
Successfully installed xcodeproj-1.21.0
Successfully installed ruby-macho-1.4.0
Successfully installed nap-1.1.0
Successfully installed molinillo-0.6.6
Successfully installed gh_inspector-1.1.3
Successfully installed fourflusher-2.3.1
Successfully installed escape-0.0.4
Successfully installed cocoapods-try-1.2.0
Successfully installed netrc-0.11.0
Successfully installed cocoapods-trunk-1.5.0
Successfully installed cocoapods-search-1.0.1
Successfully installed cocoapods-plugins-1.0.0
Successfully installed cocoapods-downloader-1.4.0
Successfully installed cocoapods-deintegrate-1.0.5
Building native extensions. This could take a while...
Successfully installed ffi-1.15.3
Successfully installed ethon-0.14.0
Successfully installed typhoeus-1.4.0
Successfully installed public_suffix-4.0.6
Successfully installed fuzzy_match-2.0.4
Successfully installed concurrent-ruby-1.1.9
Successfully installed httpclient-2.8.3
A new major version is available for Algolia!
Please now use the https://rubygems.org/gems/algolia gem to get the latest features. Successfully installed algoliasearch-1.27.5
Successfully installed addressable-2.8.0
Successfully installed thread_safe-0.3.6
Successfully installed tzinfo-1.2.9
Successfully installed i18n-1.8.10
Successfully installed activesupport-5.2.6
Successfully installed cocoapods-core-1.10.2
Successfully installed cocoapods-1.10.2

Parsing documentation for nanaimo-0.3.0
Installing ri documentation for nanaimo-0.3.0
Parsing documentation for colored2-3.1.2
Installing ri documentation for colored2-3.1.2
Parsing documentation for claide-1.0.3
Installing ri documentation for claide-1.0.3
Parsing documentation for CFPropertyList-3.0.3
Installing ri documentation for CFPropertyList-3.0.3
Parsing documentation for atomos-0.1.3
Installing ri documentation for atomos-0.1.3
Parsing documentation for xcodeproj-1.21.0
Installing ri documentation for xcodeproj-1.21.0
Parsing documentation for ruby-macho-1.4.0
Installing ri documentation for ruby-macho-1.4.0
Parsing documentation for nap-1.1.0
Installing ri documentation for nap-1.1.0
Parsing documentation for molinillo-0.6.6
Installing ri documentation for molinillo-0.6.6
Parsing documentation for gh_inspector-1.1.3
Installing ri documentation for gh_inspector-1.1.3
Parsing documentation for fourflusher-2.3.1
Installing ri documentation for fourflusher-2.3.1
Parsing documentation for escape-0.0.4
Installing ri documentation for escape-0.0.4
Parsing documentation for cocoapods-try-1.2.0
Installing ri documentation for cocoapods-try-1.2.0
Parsing documentation for netrc-0.11.0
Installing ri documentation for netrc-0.11.0
Parsing documentation for cocoapods-trunk-1.5.0
Installing ri documentation for cocoapods-trunk-1.5.0
Parsing documentation for cocoapods-search-1.0.1
Installing ri documentation for cocoapods-search-1.0.1
Parsing documentation for cocoapods-plugins-1.0.0
Installing ri documentation for cocoapods-plugins-1.0.0
Parsing documentation for cocoapods-downloader-1.4.0
Installing ri documentation for cocoapods-downloader-1.4.0
Parsing documentation for cocoapods-deintegrate-1.0.5
Installing ri documentation for cocoapods-deintegrate-1.0.5
Parsing documentation for ffi-1.15.3
Installing ri documentation for ffi-1.15.3
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 public_suffix-4.0.6
Installing ri documentation for public_suffix-4.0.6
Parsing documentation for fuzzy_match-2.0.4
Installing ri documentation for fuzzy_match-2.0.4
Parsing documentation for concurrent-ruby-1.1.9
Installing ri documentation for concurrent-ruby-1.1.9
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 addressable-2.8.0
Installing ri documentation for addressable-2.8.0
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 i18n-1.8.10
Installing ri documentation for i18n-1.8.10
Parsing documentation for activesupport-5.2.6
Installing ri documentation for activesupport-5.2.6
Parsing documentation for cocoapods-core-1.10.2
Installing ri documentation for cocoapods-core-1.10.2
Parsing documentation for cocoapods-1.10.2
Installing ri documentation for cocoapods-1.10.2

Done installing documentation for nanaimo, colored2, claide, CFPropertyList, atomos, xcodeproj, ruby-macho, nap, molinillo, gh_inspector, fourfl usher, escape, cocoapods-try, netrc, cocoapods-trunk, cocoapods-search, cocoapods-plugins, cocoapods-downloader, cocoapods-deintegrate, ffi, eth on, typhoeus, public_suffix, fuzzy_match, concurrent-ruby, httpclient, algoliasearch, addressable, thread_safe, tzinfo, i18n, activesupport, cocoapods-core, cocoapods after 18 seconds

34 gems installed
Copy the code

alex@Alexs-MacBook ~ % pod –version

1.10.2
Copy the code
  • This moment, finally ushered in the victory ✌️

As a final step, install the pods required for the project

alex@Alexs-MacBook repo % pod install

Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project

Pod installation complete! There are 32 dependencies from the Podfile and 86 total pods installed.
Copy the code

Afterword.

From this situation, the principle of cocopods is not fully understood, and some mysteries remain unsolved. Although this does not affect the subsequent development work, but it will always leave a psychological shadow, the next time to reinstall Cocoapods may have to wade through the water, think of anxiety and uncomfortable. Ha, ha, ha