ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

library not found on arm64 mac, osx-universal runtime identifier not valid?

Open sfuller opened this issue 3 years ago • 0 comments

Hello! Thank you very much for this awesome imgui binding, it was magical seeing imgui up and running in my .net project just by simply installing a .nuget package.

I have recently switch to an arm64 Mac, and have had some issues getting .net to find libcimgui.dylib when using the 1.87.3 nuget package.

It appears that upon restoring the package, runtimes/osx-universal/native/libcimgui.dylib is placed in the bin directory, however the runtime doesn't seem to search there.

I have tried adding the -a universal arguments to dotnet run, but this complains that osx-universal is not a supported rid. dotnet --version prints 6.0.400 as the sdk version.

Looking at https://docs.microsoft.com/en-us/dotnet/core/rid-catalog, osx-universal doesn't seem documented at all.

I noticed that in recent commits, the .dylib is now being put in runtimes/osx-arm64/native/libcimgui.dylib, however this change has not been released to .nuget yet.

EDIT: It is worth noting that my current workaround is to copy the binaries inside of osx-universal/native to osx-arm64/native. Also worth noting that copying the binaries to osx/native does not work. Hope this helps!

In summary, is osx-universal an actual rid, and if not, is this going to be fixed in the next version?

sfuller avatar Sep 13 '22 07:09 sfuller