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