Notes

CocoaPods on M1 MacBooks (Apple Silicon based chip)

getting CocoaPods to work on an M1 Mac by running the terminal under Rosetta and prefixing commands with arch -x86_64

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
Browse all topics