Matlab native for M1 apple beta and brainstorm -nogui

The real reason of error is that the mexext isn' supported yet for mexmaca64,

I added "maca64" in the list of supported mex extensions: (Added mex extension mexmaca64 for Mac ARM M1 systems · brainstorm-tools/brainstorm3@98927dd · GitHub)

Please update Brainstorm and try again.

Also in my understanding, brainstorm -nogui shouldnt try to initialize gui, which is the problem here

brainstorm nogui starts the GUI internally but doesn't show it.
brainstorm server works without Java (and without any graphical elements).
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Starting_Brainstorm