Develop/React Native

[React Native] How to fix pod install error with missing compatible arch

kimpeupeu 2021. 3. 24. 17:22

If you got an error like below:

LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle

It's maybe occured by M1 Chip on your mac. So, the solution is very simple.

Just run 'pod install' as Intel.

 

sudo arch -x86_64 gem instasll ffi
arch -x86_64 pod install

 

Check out the github issue:

https://github.com/CocoaPods/CocoaPods/issues/10518

반응형