Quantcast
Channel: CocoaPods on M1 (Apple Silicon) fails with ffi wrong architecture - Stack Overflow
Browsing latest articles
Browse All 14 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer by muhyidin for CocoaPods on M1 (Apple Silicon) fails with ffi wrong...

just run this code, already fixbrew uninstall --ignore-dependencies ruby

View Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


CocoaPods 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
Browsing latest articles
Browse All 14 View Live




Latest Images