MonoMod.Common icon indicating copy to clipboard operation
MonoMod.Common copied to clipboard

on mono on Rosetta environment, falsely detected as ARM and causes crash

Open anatawa12 opened this issue 2 years ago • 0 comments

I found this problem on UnityEditor on macOS with Harmony. I tried to mod assemblies but unity crashes because of this problem.

Test Code

using System;
using MonoMod.Utils;

namespace MonoMod.DebugIL {
    class Program {
        public static void Main(string[] args) {
            Console.WriteLine("PlatformHelper.Current " + PlatformHelper.Current);
        }
    }
}

Expected

PlatformHelper.Current Bits64, MacOS

Actual

PlatformHelper.Current Bits64, MacOS, ARM

anatawa12 avatar Mar 28 '23 08:03 anatawa12