- Duplicate the Terminal application in the Utilities folder.
- Right click on the app and choose Get Info.
- Rename the other version of the app as you like.
- Check the option "open with Rosetta".
- Install Cocoapods with the command "sudo gem install cocoapods"
- 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