-
Notifications
You must be signed in to change notification settings - Fork 86
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
Pkcs11Interop is not supported on this platform #215
Comments
Hi @jariq, do you know anything about it? |
Nope. I am not currently working on anything maccatalyst related. |
I don't know why your library doesn't detect an application that runs with MacCatalyst, I downloaded the project and returned but it returns an exception: and load library: I think I remember it used to work.
how can i add |
@angelru it's really hard for me to understand what your problem is and help you because you're describing it in a multiple comments in a quite chaotic way. Please be as detailed as you can be and provide:
|
I am using the latest version of Pkcs11Interop and .NET 7 with MAUI. I got it to compile the application for MacCatalyst with the But when using:
get exception:
|
Information you provided:
Information you still need to provide:
|
|
OK so let's sum it up once again:
|
Could you please add following code to your application and let me know what it prints to STDOUT? Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows)}");
Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Linux)}");
Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX)}"); |
I saw this:
|
Welp, |
I understand it's a NET problem, but one thing, I unload your project and return and then it tells me this: |
Hi, I encounter the same issue. By running step by step debug, I also have an exception stating that libdl is missing : NativeMethods.cs this method :
Exception :
StackTrace :
|
Could any of you please share with me a minimal MAUI app that replicates the problem? So I can easily run Minimal, Reproducible Example. |
Is this project Ok for you ? You just have to click the first button after launching the project |
@Thordax the project you provided does not build on my mac. I had to disable Android and iOS platforms in
I'd say it's missing empty-pkcs11 library during the linking phase. Any hint how to fix this? |
Will it be solved by changing the linker? |
Hi @angelru I tried to add that reference in the csproj file, but I suppose the file "libempty-pkcs11-catalyst.dylib" is missing. How could I get that file ? Should I compile it somehow ? |
Accept pull |
Thanks @angelru I got the same error unfortunately (missing file "libdl", and I don't know how to get it). Without it, I can't call the native method "dlopen" in the NativeMethod.cs file :
|
yes, same issue... |
is there news? |
Nope. I am not currently working on anything MAUI or maccatalyst related. |
I am using NET MAUI in with mac catalyst and I get this exception
The text was updated successfully, but these errors were encountered: