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

dotnet6.0-maccatalyst: Linking fails on native reference dylib #9808

Closed
angelru opened this issue Aug 31, 2022 · 0 comments
Closed

dotnet6.0-maccatalyst: Linking fails on native reference dylib #9808

angelru opened this issue Aug 31, 2022 · 0 comments
Labels
platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@angelru
Copy link

angelru commented Aug 31, 2022

Description

I am using https://github.com/Pkcs11Interop/Pkcs11Interop and make a native reference to the library as indicated in:
https://github.com/Pkcs11Interop/empty-pkcs11

This in Xamarin forms macOS works fine, but in .NET MAUI it shows the following error:
Captura

Log:

 ld: building for Mac Catalyst, but linking in dylib built for macOS, file 'obj/Debug/net6.0-maccatalyst/maccatalyst-x64/nativelibraries/libempty-pkcs11-x64.dylib' for architecture x86_64
        clang: error: linker command failed with exit code 1 (use -v to see invocation)

More info:
xamarin/xamarin-macios#15044

Steps to Reproduce

Create a .NET MAUI project and add the Pkcs11Interop nuget and library as shown in my screenshot.

Version with bug

6.0.486 (current)

Last version that worked well


Affected platforms

MacCatalyst

Affected platform versions

MacCatalyst

Did you find any workaround?

No response

Relevant log output

No response

@angelru angelru added the t/bug Something isn't working label Aug 31, 2022
@jsuarezruiz jsuarezruiz added the platform/macOS 🍏 macOS / Mac Catalyst label Aug 31, 2022
@angelru angelru closed this as completed Aug 31, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants