Post date: 2021.11.07
For who fail to install Cocoapod on M1 Mac may try this method:
At first I follow tutorial to use rosetta to launch Terminal and “sudo gem install ffi” but fail to install ffi
Finally I use the non rosetta Terminal to install the most updated version (which I write this post at 2021.11.07) of Homebrew which fit M1 chip natively, this version of Homebrew does not need to fix any path issue. You may find how to install on Homebrew’s website.
“brew install libffi”
“brew install cocoapods”
Then it is done.
Cocoapod and Firebase work. Can build and can write data to Firestore.
I am not sure if “brew install libffi” is an essential step but I installed it before Cocoapod