Xamarin Forms macOS Cocoa App and .NET MAUI error code '1' mm5309

Ángel Rubén Valdeolmos Carmona 611 Reputation points
2022-08-09T06:31:12.073+00:00

I am using the Pkcs11Interop library:
https://github.com/Pkcs11Interop/Pkcs11Interop

and when compiling it gives me that error with VS2019 and VS2022:

failed to execute the tool 'clang' it failed with an error code '1' mm5309  

\f0\fs24 \cf0 /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.442/targets/Xamarin.Shared.Sdk.targets(1219,3): error : clang++ exited with code 1\  
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/15.4.442/targets/Xamarin.Shared.Sdk.targets(1219,3): error :         \  
/usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/15.4.442/targets/Xamarin.Shared.Sdk.targets(1219,3): error : clang++ exited with code 1\  
/usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/15.4.442/targets/Xamarin.Shared.Sdk.targets(1219,3): error :         \  

when removing it everything compiles well, how can I solve it?

Developer technologies .NET Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. Ángel Rubén Valdeolmos Carmona 611 Reputation points
    2022-08-10T10:09:34.797+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.