Unity Stuck at reloading Assemblies

Every time I want to compile my scripts the Unity gets stuck at “Reloading Domain”

OS: MacOS Ventura 13.0.1
Unity Editor Version: 2022.2.0b16
IDE: VS Code version 1.74.1, C# Extension version 1.25.0
Mono Version: 6.12.0.182

The console log shows this:

Reloading assemblies after forced synchronous recompile.
Begin MonoManager ReloadAssembly
cant resolve internal call to “System.Runtime.InteropServices.Marshal::GetIUnknownForObjectInternal(object)” (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /Applications/Unity/Hub/Editor/2022.2.0b16/Unity.app/Contents/MonoBleedingEdge/lib/mono/unityjit-macos/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you’re sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to “System.Runtime.InteropServices.Marshal::GetHRForException_WinRT(System.Exception)” (tested without signature also)
[40m[32minfo[39m[22m[49m: Microsoft.Hosting.Lifetime[0]
Application is shutting down…

How can i fix this?

Have you tried deleting the Library-folder of your project and doing a full re-import?

I just tried that and it didn’t fix the issue.