-
Notifications
You must be signed in to change notification settings - Fork 486
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
_CodesignVerify target fails when publishing a .NET MAUI MacCat app for outside the App Store #17829
Comments
rolfbjarne
added a commit
to rolfbjarne/SubmissionSamples
that referenced
this issue
Mar 17, 2023
rolfbjarne
added a commit
to rolfbjarne/xamarin-macios
that referenced
this issue
Mar 17, 2023
…amarin#17829. * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes xamarin#17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes xamarin#17829.
rolfbjarne
added a commit
to xamarin/SubmissionSamples
that referenced
this issue
Mar 21, 2023
rolfbjarne
added a commit
that referenced
this issue
Mar 21, 2023
…17829. (#17835) * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes #17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes #17829.
vs-mobiletools-engineering-service2
pushed a commit
to vs-mobiletools-engineering-service2/xamarin-macios
that referenced
this issue
Mar 21, 2023
…amarin#17829. * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes xamarin#17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes xamarin#17829.
vs-mobiletools-engineering-service2
pushed a commit
to vs-mobiletools-engineering-service2/xamarin-macios
that referenced
this issue
Mar 21, 2023
…amarin#17829. * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes xamarin#17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes xamarin#17829.
vs-mobiletools-engineering-service2
pushed a commit
to vs-mobiletools-engineering-service2/xamarin-macios
that referenced
this issue
Mar 21, 2023
…amarin#17829. * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes xamarin#17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes xamarin#17829.
rolfbjarne
added a commit
that referenced
this issue
Mar 22, 2023
…e verify macOS apps. Fixes #17829. (#17868) * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes #17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes #17829. Backport of #17835 Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
rolfbjarne
pushed a commit
that referenced
this issue
Mar 22, 2023
…acOS apps. Fixes #17829. (#17867) * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes #17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes #17829. Backport of #17835
rolfbjarne
pushed a commit
that referenced
this issue
Mar 22, 2023
…e verify macOS apps. Fixes #17829. (#17869) * For Mac Catalyst apps we must verify the code signature like we do it for macOS apps. Fixes #17829. * Enable nullability and fix code accordingly. * Merge the CodesignVerify and CodesignVerifyTaskBase classes to simplify the code. Submission test is added as well: * xamarin/maccore#2656 * xamarin/SubmissionSamples#51 Fixes #17829. Backport of #17835
24 tasks
ghost
locked as resolved and limited conversation to collaborators
Apr 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Publishing a .NET MAUI Mac Catalyst app for distribution outside the App Store requires a Developer ID Application certificate, and a Developer ID Installer certificate (+ App ID and provisioning profile). Then you can publish your app using:
However, this results in an error telling you that
codesign
has exited with code 3:Examining the bin log shows that the
_CodesignVerify
target fails with:After chatting to @rolfbjarne, the workaround is to disable the
_CodesignVerify
target in your .csproj:This enables the signed .pkg to be produced, which I was then able to notarize using
xcrun notarytool
.Steps to Reproduce
Expected Behavior
App publishes and signed .pkg is produced.
Actual Behavior
Error: /usr/local/share/dotnet/packs/Microsoft.MacCatalyst.Sdk/16.2.1040/tools/msbuild/iOS/Xamarin.Shared.targets(1930,3): error MSB6006: "codesign" exited with code 3. [/Users/davidbritch/Projects/MyMauiApp/MyMauiApp/MyMauiApp.csproj::TargetFramework=net7.0-maccatalyst]
No .pkg is produced.
Environment
.NET 7 installed by VSMac, although this is a publishing issue using CLI.
Version information
Build Logs
msbuild.log
The text was updated successfully, but these errors were encountered: