CocoaPods on M1 MacBooks (Apple Silicon based chip)

CocoaPods doesn't work out of the box on M1 Macs. Something about ffi and arch stuff. There are workarounds though.

  • Open Terminal / iTerm with Rosetta (Get Info > Open using Rosetta)
  • Install CocoaPods related commands with arch -x86_64
# install CocoaPods
arch -x86_64 sudo gem install cocoapods

# install ffi
arch -x86_64 sudo gem install ffi

# install dependencies
arch -x86_64 pod install


Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.