question

James-6233 avatar image
0 Votes"
James-6233 asked RobCaplan edited

Xamarin Forms macOS sign application bundle disabled

Hi,

I have been really happy with my first project using Xamarin Forms building across Windows, GTK, Mac, iOS, Android but have hit my first issue which has me stopped in my tracks.

I am starting to upload builds to the various app stores, however trying to sign and publish my Mac build seems to be in trouble.
In "Project Settings -> Build -> Mac Signing" my "Sign the application bundle" check box is greyed out.
"Sign the installer package" is enabled, which I have ticked and selected the appropriate identity.

To the best of my knowledge I have all the appropriate certificates and provisioning profiles setup, and they are visible from the Xamarin preferences.

Can anyone give me any hints as to what I have done wrong to disable the "Sign the application bundle" option?

I am using Visual Studio for Mac 8.9.8 (build 7) with Xamarin.Forms (5.0.0.2012).

Thank you for any information anyone can offer.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

James-6233 avatar image
0 Votes"
James-6233 answered

I found my issue, hopefully it helps someone else making the same silly mistake.

As I'm sure everyone expects it was a certificate issue.
I have been a developer for iOS for quite a while now so I already had an Apple Distribution certificate which said under platforms "All", so of course I assumed that meant it was a valid macOS distribution certificate.

After reading the Xamarin docs and my certificate list with some fresh eyes this morning I realised I was meant to create another Mac App Distribution certificate and use that.
As soon as I created the new certificate the option to "Sign the application bundle" enabled.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.