mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’) in Flutter
Running on M1 mac, these two commands solved my problem. $ arch -arm64 brew install llvm $ sudo gem install ffi
Running on M1 mac, these two commands solved my problem. $ arch -arm64 brew install llvm $ sudo gem install ffi