Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MacCatalyst #2059

Open
michaelstonis opened this issue Sep 27, 2023 · 0 comments
Open

Support for MacCatalyst #2059

michaelstonis opened this issue Sep 27, 2023 · 0 comments

Comments

@michaelstonis
Copy link

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.

{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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant