I have the arm64 version of .net core installed
That still gives me the same error
~> Attached to dotnet.
~> The process failed to start with the following error: System.Exception: Could not load .the NET Core dbgshim library at /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.3/libdbgshim.dylib. Error:
~> at RemObjects.Oxygene.CoreDebugEngine.CLR.DotNetCorUtilities.LoadLibrary (System.String s) [0x0005c] in <9cf90225475440668b0ddc0c5a883ada>:0
~> at RemObjects.Oxygene.CoreDebugEngine.CLR.DotNetCorUtilities.GetInfo (System.String aPath) [0x00044] in <9cf90225475440668b0ddc0c5a883ada>:0
~> at RemObjects.Oxygene.CoreDebugEngine.CLR.DotNetCorUtilities.AttachProcess (System.String aDotNetPath, System.UInt32 pPid, System.Action`2[T1,T2] aCallback) [0x00014] in <9cf90225475440668b0ddc0c5a883ada>:0
~> at RemObjects.Oxygene.CoreDebugEngine.CLR.CLRDebugEngine.Start () [0x00263] in <9cf90225475440668b0ddc0c5a883ada>:0
~> at a.a (System.String[] a) [0x004c8] in <888b33318f3f4a06b95e2e72f4e7d3a0>:0
Thatâs not the same error.
Does /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.3/libdbgshim.dylib exist? what does
# file /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.3/libdbgshim.dylib
emit as architecture for that file?
I get this output
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.3/libdbgshim.dylib: Mach-O 64-bit dynamically linked shared library arm64
Was your output also from an m1 mac with arm64 .net core ?
ok, so far so good.
Yes.
Can you open the Activity Window before attaching and then post the log output from there? just to be sure, i case there is anything helpful in there.
I get this in the activity window
platformsPopup.itemAtIndex(i).title Island (Native Debugger)
platformsPopup.itemAtIndex(i).title Echoes (.NET Core Debugger)
parameters {
"AttachToPID": 14763,
"MonoExePathOverride": "/Applications/Fire.app/Contents/Resources/Mono/bin/mono-sgen",
"Mode": "Echoes",
"SubMode": ".NETCore",
"DebuggerExePathOverride": "/Applications/Fire.app/Contents/Resources/RemObjects.Elements.Debugger.exe",
"NetCore": true,
"Architecture": "x86_64",
"CrossBox": "Local"
}
Isnât the architecture wrong ?
Hmm, i doubt that matters. The fix that mattered (for me) was the âMonoExePathOverrideâ: â/Applications/Fire.app/Contents/Resources/Mono/bin/mono-sgenâ. The embedded mono supports arm64, but the external ones still donât.
THAT said, i got a clean error before this fix that explicitly said âdylib is arm but i need x86_64â, which you donât.
Stupid question: you are running Fire natively as arm, right? You havenât manually toggled it to run as x86_64, in Finder?
I dont think I have, Im not sure where the toggle is ![]()
If I do get info on Fire it says Kind : Application (Intel), something like music says kind: application (universal)
Hmmmm.
damn, i know whatâs happening. you have a non-âsetupsâ build from CI. i think those donât build both architectures, only local one (and the build machine is Intel). I apologize for that, i did not think of that at all. Can you retest with todayâs official build (which should be building in the next hour or so)?
FWIW, this doesnât matter for .NET COre, but would for attaching natively, and i just fixed that to properly detect the process architecture for Rosetta vs native, so with vNext youâll see âarm64â here. But it doesnt matter for how the .NET Core attach works, it ignores this info.
Thanks it works now. Will the non setup builds continue to be intel only ?
Iâll see if I can change that; itâs mainly to keep build times down, but I donât think it would make a big difference in the grand scheme of thingsâŚ