Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install

Hi I'm trying to run my react native app on mac mini. I can run another app also this app to but when i write pod install in terminal it gives this error.

1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/specification.rb:1449:in `block in activate_dependencies'

    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'ffi' (>= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError)
    Checked in 

'GEM_PATH=/Users/xx/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information

I tryed a lot like this code

sudo gem pristine --all,  gem pristine --all

sudo gem install -n /usr/local/bin cocoapods -v 1.8.4

delete and ini pod init/ which gave error
brew reinstall cocoapods
\curl -sSL https://get.rvm.io | bash -s stable --ruby
like image 869
tryingtofix Avatar asked Dec 17 '22 11:12

tryingtofix


1 Answers

You can try this command

sudo gem uninstall -aIx
rm -rf ~/.gem
sudo gem install cocoapods

sudo chown -R $USER ~/Library/Caches/CocoaPods
like image 137
hong developer Avatar answered Dec 28 '22 06:12

hong developer