So I decided to try installing Haxe/Neko from Intel Homebrew on my Apple Silicon Mac, and get Lime/OpenFL to work without -eval. Unless there’s something I failed to delete somewhere that was from the old .pkg installer that is still being used under my nose, I think I did it.
First, I made sure that all versions of Haxe/Neko were completely removed, including both versions from Homebrew (don’t want to mix and match different architectures!), and the .pkg installer that I was originally using. I also removed the lime and openfl aliases, just to start as clean as possible. I ran the following commands:
/opt/homebrew/bin/brew uninstall haxe
/opt/homebrew/bin/brew uninstall neko
/usr/local/bin/brew uninstall haxe
/usr/local/bin/brew uninstall neko
sudo rm -rf /usr/local/lib/haxe
sudo rm -rf /usr/local/lib/neko
sudo rm /usr/local/bin/haxe
sudo rm /usr/local/bin/haxelib
sudo rm /usr/local/bin/neko
sudo rm /usr/local/bin/openfl
sudo rm /usr/local/bin/lime
Then, just to be sure, I confirmed that none of these commands were working anymore. They all correctly resulted in a command not found error in my terminal.
haxe
haxelib
neko
lime
openfl
Then, explicitly using Intel Homebrew, I installed Haxe on my Apple Silicon Mac with the following command:
/usr/local/bin/brew install haxe
I confirmed that the haxe and neko commands were working with basic default output and no errors.
haxe
neko
Then, I setup Haxelib, as required by Haxe:
haxelib setup
Then, I installed OpenFL and ran its setup command (without -eval)
haxelib install openfl
haxelib run openfl setup
Finally, I went to one of the OpenFL sample projects and ran openfl test html5. It worked! I also opened the project in VSCode, and code intelligence was working correctly.
EDIT (Sept. 2025): Haxe, Neko, Lime, and OpenFL all support native Apple Silicon (ARM64) on macOS very nicely now. No need to use Intel versions of anything with Rosetta anymore, unless you specifically still need to use Lime 8.1 and older or Haxe 4.3.4 and older, for some reason. If you want to use Homebrew, you can get the Apple Silicon version of Haxe from Homebrew by running this command instead:
/opt/homebrew/bin/brew install haxe