Answer by vojda for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
For an error: incompatible architecture (have 'x86_64', need 'arm64'), you need to do the following:gem list --local | grep cocoapods | awk '{print $1}' | xargs sudo gem uninstallsudo gem install...
View ArticleAnswer by Andrew Arrow for CocoaPods on M1 (Apple Silicon) fails with ffi...
When i tried the x86_64:sudo arch -x86_64 gem install ffilinking shared-object ffi_c.bundleld: warning: ignoring file /Users/aa/.rbenv/versions/3.0.1/lib/libruby.3.0.dylib, building for macOS-x86_64...
View ArticleAnswer by eloka for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
All I did for my case was run the following command to pod install. I didn't have to uninstall ruby or cocoapodarch -x86_64 pod install
View ArticleAnswer by muhyidin for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
just run this code, already fixbrew uninstall --ignore-dependencies ruby
View ArticleAnswer by Magistern for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
I got it working by first cleaning up all previously installed pods:pod deintegrateThen installing them again using this command:arch -x86_64 pod install
View ArticleAnswer by Sami Salih İbrahimbaş for CocoaPods on M1 (Apple Silicon) fails...
I got this error while setting up capacitor project on my new macbook with m1 chip. However, if you want to use capacitor, flutter or React Native, you will get this error because this is a framework...
View ArticleAnswer by nathanwhy for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
I agree with Datasun's answer. But currently we can use arm64 instead of x86_64 in M1 Macbook.I reinstall ruby and ran the lines in terminal:gem uninstall cocoapodsgem uninstall cocoapods-coregem...
View ArticleAnswer by Aymen Bou for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
I tried almost everything and this was the only solution that worked for me:uninstalling the cocoapods package through gemsudo gem uninstall cocoapodsand reinstalling it with homebrewbrew install...
View ArticleAnswer by Andrew for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
This described the exact problem that I was having. However, none of the solutions worked. In the end, this is what helped me solve the problem: brew unlink libyaml && brew link libyaml brew...
View ArticleAnswer by Md. Ruhul Amin for CocoaPods on M1 (Apple Silicon) fails with ffi...
For me, I had to do these extra things after following @Datasun:brew install rubyandecho 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"'>> ~/.zshrc
View ArticleAnswer by Rhys Broughton for CocoaPods on M1 (Apple Silicon) fails with ffi...
I agree with Datasun's answer. But I managed to follow roughly the same steps which gave a a functioning outcome, that I thought to be better or just as good. I ran the lines in terminal:brew uninstall...
View ArticleAnswer by burtsevyg for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
As said Datasun I removed cocoapodsgem list --local | grep cocoapods | awk '{print $1}' | xargs sudo gem uninstalland then run:brew remove rbenvsudo rm -rf ~/.rbenvsudo arch -x86_64 gem install ffisudo...
View ArticleAnswer by Nusatad for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...
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...
View ArticleCocoaPods on M1 (Apple Silicon) fails with ffi wrong architecture
Running 'pod install' on a M1 MacBook failed for me due to an ffi issue, as described here.I followed some of the workarounds (I guess I tried all of them in various order), but now I get a slightly...
View Article
More Pages to Explore .....