Error Messages:
Solution:
Method 1: A simple and straightforward solution
Add arch -x86_64 in front of the pod command
e.g. arch -x86_64 pod update
Method 2: reinstall cocoaPods
Answering my own question. I fixed the ffi issue by uninstalling my faulty Ruby version and CocoaPods, then I used the -x86_64 arch to reinstall ffi and CocoaPods.
These are the steps I did to get back to a working state (and to apply the M1 workarounds for ffi):
Uninstall Ruby with: brew uninstall ruby –force
Uninstall CocoaPods. At first, try to list all CocoaPods versions / components with gem list –local | grep cocoapods. Then uninstall them one by one, in my case:
sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-downloader
etc.
As a next step I was able to reinstall ffi and then CocoaPods with:
sudo arch -x86_64 gem install ffi
sudo arch -x86_64 gem install cocoapods
Once done, I could run pod install as expected. Note that I had the Terminal open all the time in standard mode – no Rosetta required
Read More:
- How to Solve Macbookm1 pod error
- M1 MacBook pod install Report an error chip incompatibility problem
- [Solved] pod CDN: trunk Repo update failed – 56 error(s):
- How to Solve Xcode M1 simulator Error
- How to Solve m_gshhs_i Error
- How to Solve pod Error: “Authentication token is invalid or unverified. Either verify it with the email that…”
- Apple M1: How to Solve Spark runs Error
- How to Solve Error: Error running ‘__rvm_make -j8‘ (Mac M1 BigSur)
- How to Solve NPM update check failed Error
- How to Solve Git submodule update error
- How to Solve Cocoapods Installation Failure
- Pod install Error: LoadError [How to Solve]
- Windows update failed to update, indicating the solution of 0x80244021
- WordPress update failed 429 too many requests (How to Fix)
- [Solved] FlutterIOS CDN trunk Repo update failed – 34 error(s)
- How to Solve Huawei ensp40 Error
- How to Solve elk7.7.1 logstash Install Error
- How to Solve elasticsearch and logstash Install Error
- How to Solve ruby rails Install Error [Windows]
- M1 MacBook cannot use pip to install pandas [How to Solve]