Step 1:
Flutter requires the rosette must be installed on your machine. Rosetta is a translation library which allows users to run apps that contain X86_64 instructions on Apple silicon Mac.
sudo softwareupdate --install-rosetta --agree-to-license
Step 2:
Cocoa-pods require a terminal using UTF-8 encoding. Sometimes only setting βLANG=en_US.UTF-8β not works. you need to perform the following steps:
- Open Terminal
nano ~/.zshrc ("or nano ~/.profile if you don't use zsh")
- Apeen the following in the editor:
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
- Save the file and quit the terminal.
- Open the file again and verify.
Step 3 (Optional)
if you still see an error related to βffiβ then reinstall the gem βffiβ in the system with the following command.
sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc
Comments powered by Disqus.