CocoaPods on M1 MacBooks (Apple Silicon based chip)
February 24, 2020
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
code
# 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