Failed task "pod install" on M1 Chip

Hello! I am trying to install pods for a react native app , but I can't install the pods with the M1 Chip. I tried several times with different approaches like the following:

sudo arch -x86_64 gem install ffi arch -x86_64 pod install or installing via rosetta terminal or installing with homebrew or switching to another ruby version (ruby-2.7.5) with rvm use

but "pod install" always fails with the following error message: `incompatible library version - /Users/user/.rvm/gems/ruby-3.0.0/gems/ffi-1.15.5/lib/ffi_c.bundle´ it seems like the current ruby version is not compatible with the ffi and the cocoapods version.

Can anyone help me or have another idea why it does not work? I think another problem could be that it uses different ruby versions within the process of installation because I have ruby installed with homebrew and on another location too.

Yeah for now looks like M1 and ffi 1.15.5 fails. You can check that by simply try gem install ffi -v 1.15.5 Any version below, installs just fine.

Failed task "pod install" on M1 Chip
 
 
Q