pod install error after macOS Catalina

Rathish Kannan
1 min readJul 6, 2020

Scenario

  • Happens when macOS updated
  • Reinstalling macOS
  • ~Library is corrupted or moved/ deleted

Install pod on your system

$ sudo gem install cocoapods

Ideally cocoapods should install here, but it gives error

Error installing cocoapods:
ERROR: Failed to build gem native extension.

Solution

Ref: https://github.com/CocoaPods/CocoaPods/issues/8955

Install cocoapods through brew

brew install cocoapods --build-from-source

Now link to the current version

brew link — overwrite cocoapods

If you get error from ruby, then you need to install ruby

Ref: https://github.com/fastlane/fastlane/issues/15460

$ brew install ruby

Perform pod install from your directory

`cocoapods-art` is missing

install missing gem `cocoapods-art`

sudo gem install cocoapods-art

--

--