Error message I got (Harmony mod mprotect returned EACCES)

Mod Loading Errors - Errors occurred when loading one or more mods. Logs may contain additional information. exception: ObserverMode: mod’s Harmony loading failed with an exception: HarmonyLib.HarmonyException: Patching exception in method System.Void PlayerMicrobeInput::OnMovement(System.Single delta, System.Single forwardMovement, System.Single leftRightMovement, ActiveInputMethod inputMethod) —> System.TypeInitializationException: The type initializer for ‘HarmonyLib.HarmonySharedState’ threw an exception. —> System.Exception: mprotect returned EACCES
at MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.SetMemPerms (System.IntPtr start, System.UInt64 len, MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform+MmapProts prot) [0x00043] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.MakeWritable (System.IntPtr src, System.UInt32 size) [0x00000] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.DetourHelper.MakeWritable (MonoMod.RuntimeDetour.IDetourNativePlatform plat, MonoMod.RuntimeDetour.NativeDetourData detour) [0x00000] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform._HookSelftest (System.Reflection.MethodInfo from, System.Reflection.MethodInfo to) [0x00035] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform…ctor () [0x0004a] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.Platforms.DetourRuntimeMonoPlatform…ctor () [0x00000] in <255414689d344b1385ae719f6cce8c55>:0
at MonoMod.RuntimeDetour.DetourHelper.get_Runtime () [0x00044] in <255414689d344b1385ae719f6cce8c55>:0
at HarmonyLib.HarmonySharedState…cctor () [0x000e7] in <255414689d344b1385ae719f6cce8c55>:0
— End of inner exception stack trace —
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x00031] in <255414689d344b1385ae719f6cce8c55>:0 --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0010f] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.PatchClassProcessor.Patch () [0x00093] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <255414689d344b1385ae719f6cce8c55>:0 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[T] action) [0x00014] in <255414689d344b1385ae719f6cce8c55>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <255414689d344b1385ae719f6cce8c55>:0
at ModLoader.LoadAutoHarmonyMod (System.String name, System.Reflection.Assembly assembly) [0x00045] in :0

Usually I would close a bug report about a mod / merge this into a thread about that mod, but in this case this issue is specifically with the mod loading system not fully working on Macs.

Specifically this issue:

And the feature request to that mod making framework to add mac support (it’s been open since 2021):