Closed RightFS closed 2 years ago
modules/mono/mono_gd/gd_mono_utils.cpp:369 - System.TypeInitializationException: The type initializer for 'Sys' threw an exception.
This error casued by mono runtime. In this case, my godot build as universal binary, but my mono runtime is not unversal binary.
how fix it??
Godot version
3.5.1-stable
System information
MacBookPro18,2 MacOS 12.6.1 M1 MAX
Issue description
when I try to run
<godot_binary> --generate-mono-glue modules/mono/glue
it reports some errors:Steps to reproduce
I download prebuild arm64 mono from https://github.com/godotengine/godot-mono-builds/releases, and copy the BCL files into the right path, then run this cmd to build a temp godot binary.
I run the Godot binary that built in first step
And , I got the errors above, I also tried to build arch=x64 with mono x64 from
brew install
, and got same errors.build final Godot with the wrong glue files, I can got a runable Godot, it can open a project but can not open *.cs file and got a error msg:
when I click play , I got an error msg:
when I double click a *.cs file , I got this:
Minimal reproduction project
No response