You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created a new .NET MAUI app and launched it with MacCatalyst. When making a call to Repository.IsValid(projectPath); it will throw the following. Looking at the output folder, the runtimes are not copied there. I have tried manipulating the output folder, but it doesn't seem to be able to resolve the native library properly.
{System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: git2-e632535
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary() in **/_/LibGit2Sharp/Core/NativeMet…}**
Running the same command via a console application (.NET 7.0 CLI, not MacCatalyst) executes as expected.
Expected behavior
Native libraries should be copied to the output folder and made available, if possible, for the MacCatalyst platform.
Actual behavior
Native libraries are not copied over and cannot be referenced on MacCatalyst.
Version of LibGit2Sharp (release number or SHA1)
0.27.2
Operating system(s) tested; .NET runtime tested
.NET 7.0 via MacCatalyst-x64 (Mac M1).
The text was updated successfully, but these errors were encountered:
I'm also a developer in need of a MacCatalyst-compatible assembly, as I wanted to build a MAUI-based GUI tool.
I understand that the crash I get is due to there not being a DLL/Dylib for the underlying libgit2 that is compatible with the MacCatalyst ABI.
So, if I wanted to add support for other platforms/ABI (such as MacCatalyst, Android or iOS), where would be the best place to start?
Reproduction steps
Created a new .NET MAUI app and launched it with MacCatalyst. When making a call to
Repository.IsValid(projectPath);
it will throw the following. Looking at the output folder, the runtimes are not copied there. I have tried manipulating the output folder, but it doesn't seem to be able to resolve the native library properly.Running the same command via a console application (.NET 7.0 CLI, not MacCatalyst) executes as expected.
Expected behavior
Native libraries should be copied to the output folder and made available, if possible, for the MacCatalyst platform.
Actual behavior
Native libraries are not copied over and cannot be referenced on MacCatalyst.
Version of LibGit2Sharp (release number or SHA1)
0.27.2
Operating system(s) tested; .NET runtime tested
.NET 7.0 via MacCatalyst-x64 (Mac M1).
The text was updated successfully, but these errors were encountered: