Friday, January 8, 2021

Enable CocoaPods on Mac M1

 

  1. Duplicate the Terminal application in the Utilities folder.
  2. Right click on the app and choose Get Info.
  3. Rename the other version of the app as you like.
  4. Check the option "open with Rosetta".
  5. Install Cocoapods with the command "sudo gem install cocoapods"
  6. Type the command line "gem install ffi" to fix the ffi bundle problem. Now you can do a "pod install" without problem.

Courtesy from https://stackoverflow.com/questions/64901180/running-cocoapods-on-apple-silicon-m1