MAUI Cannot debug MacCatalyst when bundle signing / code signing enabled.

Moose 0 Reputation points
2023-05-18T13:24:08.29+00:00

Using Visual Studio for Mac v17.5.5, I cannot run my maccatalyst app on my mac unless I disable code signing in the bundle signing options.

I have created all the certs etc. (for non-Apple store deployment) using the instructions from here but setting the code signing to Automatic or Always Sign results in the app not starting.

When Identity is set to "Developer ID (Automatic)" the app icon flashes for a second on the app bar then disappearing, and the message "Waiting for the debugger to connect to xxx.app" spinning in the Visual Studio notification area.

If I change the Identity to actual certs, I get a message when I try to start in debug saying "Could not connect to the debugger".

So my question is this.... has anyone here managed to provision a MAUI MacCatalyst app for deployment outside of the app store, where they can enable Code Signing?

My app using SecureStorage.Default, so without signing I cannot test my code.

Any suggestions, or is this just another area where MAUI is useless?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,176 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Moose 0 Reputation points
    2023-05-18T19:37:58.32+00:00

    As an update, following the steps in the following post helped me fix this.

    https://learn.microsoft.com/en-us/answers/questions/1114788/how-can-i-make-use-of-entitlements-plist-on-maccat