Open lavkushry1 opened 1 month ago
facing same issue. I need help.
This error is caused by not having a proper Ruby development environment on your Mac. Specifically, it's theses 2 issues:
You are on an Apple Silicon Mac, but you installed some things (such as the ffi
gem) using Rosetta, or with arch -x84_64
, or perhaps you transferred some files from an Intel Mac to your Apple Silicon Mac. Rosetta is not needed to work with newer Ruby versions.
You are using the system Ruby (the Ruby version that Apple preinstalled on your Mac)
To fix this, I recommend using a Ruby version manager to install a version of Ruby that's separate from the system Ruby and won't interfere with it. Here's a step-by-step guide for installing Ruby on a Mac.
Report
What did you do?
ℹ Please replace these two lines with what you did.
e.g. Run
pod install
What did you expect to happen?
ℹ Please replace these two lines with what you expected to happen.
e.g. Install all pod dependencies correctly.
What happened instead?
ℹ Please replace these two lines with of what happened instead.
e.g. Pod A is missing the subspec B for target C.
CocoaPods Environment
ℹ Please replace these two lines with the output of
pod env
. e.g. viapod env | pbcopy
Project that demonstrates the issue
Update all pods Updating local specs repositories
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.16.3%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+tried%3A+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.16.3%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%27x86_64%27%2C+need+%27arm64e%27+or+%27arm64%27%29%29%2C+%27%2FSystem%2FVolumes%2FPreboot%2FCryptexes%2FOS%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.16.3%2Flib%2Fffi_c.bundle%27+%28no+such+file%29%2C+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.16.3%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%27x86_64%27%2C+need+%27arm64e%27+or+%27arm64%27%29%29+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.16.3%2Flib%2Fffi_c.bundle&type=Issues
If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods... Searching for inspections failed: undefined method `map' for nil:NilClass