Notes

CocoaPods on M1 MacBooks (Apple Silicon based chip)

Edit on GitHub

iOS

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
1# install CocoaPods
2arch -x86_64 sudo gem install cocoapods
3
4# install ffi
5arch -x86_64 sudo gem install ffi
6
7# install dependencies
8arch -x86_64 pod install