xxxxxxxxxx
# Install ffi
sudo arch -x86_64 gem install ffi
# Re-install dependency
arch -x86_64 pod install
If you are using M1 and get an error installing pods with the default command try this.
xxxxxxxxxx
#Uninstall the local cocoapods gem
sudo gem uninstall cocoapods
#Reinstall cocoapods via Homebrew
arch -arm64 brew install cocoapods