How To Fix The FFI (Foreign Function Interface) Load Error That Can Occur When Using Pod Installation
How to fix the "LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (no such file), '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle" error. This error is common on arm64 Macs. It occurs when you try to run a Ruby program that uses the FFI gem, but the FFI gem is not installed for the correct architecture. To fix this error, follow these steps: Uninstall the ffi gem using the following command: sudo gem uninstall ffi Reinstall the ffi gem using the following command: sudo gem install ffi Once you ...