How to package and submit a .NET Mac App to Mac App Store

Sun, Tracy (LNG-SHA) 40 Reputation points
2023-05-15T03:37:18.0133333+00:00

I have been migrating my Xamarin native Mac project to .NET macOS Application Project, I resolved some of incompatible errors and compile an app with Debug Configuration, it can run and work well some of functions. So I try to build a release app and submit it to Mac App Store, but I get a failed response, The detail info is

"Asset validation failed (90282)

Invalid Provisioning Profile Signature. The provisioning profile included in the bundle au.com.lexisnexis.lexisred [au.com.lexisnexis.lexisred.pkg/Payload/Lexis Red.app] cannot be used to submit apps to the Mac App Store until it has a valid signature from Apple. For more information, visit the macOS Developer Portal. (ID: 9a5715c1-2696-4705-82ac-cd5af79c115f)"

In Project Properties of my new .NET Project, I can't find "Mac Build" and "Mac Signing", So I add some code to the .csproj file,

<CodesigningKey>3rd Party Mac Developer Application: REED INTERNATIONAL BOOKS AUSTRALIA PTY LIMITED (8Q4N4FU2LX)</CodesigningKey>
<CodesignProvision>Mac-Prod</CodesignProvision>
<PackageSigningKey>3rd Party Mac Developer Installer: REED INTERNATIONAL BOOKS AUSTRALIA PTY LIMITED (8Q4N4FU2LX)</PackageSigningKey>

<EnableCodeSigning>True</EnableCodeSigning>

<EnablePackageSigning>true</EnablePackageSigning>

Above configurations can work in Xamarin Mac native project, So Do you give me some suggestions for this question.

Thanks!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,004 questions
{count} votes