CocoaPods doesn’t work out of the box on M1 Macs. Something about ffi
and arch stuff. There are workarounds though.
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