Hello,
From the screenshot, you have a development provisioning profile named "VS:WildCard Developement", but it doesn't match the certificate. You can log into apple developer portal and go to profiles list, then find your provisioning profile and edit the profile to match all certificates. (Click Edit->Select all certificates). After that, you can download the profile again in VS (your first screenshot), and choose the profile (your second screenshot).
If I added another key, would I also need to update the profile file in the same way?
No. When you create another certificate, you can create a profile for it or not. When you select the provisioning profile, it should match your certificate. The solution I provide before is to make your existed profile match your exist certificate, so that you can use the profile for deployment.
Understanding certificate key pairs :A developer profile contains certificates, their associated keys, and any provisioning profiles associated with the Apple developer account. There are two versions of a developer profile—one exists in Apple's developer portal, and the other lives on a local machine. The difference between the two is the type of keys they contain: the profile on Apple's developer portal contains all of the public keys associated with your certificates, while the copy on your local machine contains all of the private keys. For certificates to be valid, the key pairs must match.
For more details, you can refer to Manual provisioning for .NET MAUI iOS apps - .NET MAUI | Microsoft Learn
It's been a few weeks since the profile was first generated and I do not recall how that was even created. Was that through the VS wizard?
When you configure hot restart, Visual Studio will configure Automatic Provisioning. Please see .NET MAUI hot restart for iOS device deployment - .NET MAUI | Microsoft Learn
When automatic provisioning is enabled, Visual Studio will re-run the process if necessary when any of the following things happen:
- An iOS device is plugged into your Mac
- This automatically checks to see if the device is registered on the Apple Developer Portal. If it isn't, it will add it and generate a new provisioning profile that contains it.
- The Bundle ID of your app is changed
- This updates the app ID. A new provisioning profile containing this app ID is created.
- A supported capability is enabled in the Entitlements.plist file.
- This capability will be added to the app ID and a new provisioning profile with the updated app ID is generated.
- Not all capabilities are currently supported. For more information on the ones that are supported, check out the Working with Capabilities guide.
Please see Automatic provisioning for .NET MAUI iOS apps - .NET MAUI | Microsoft Learn
Was my problem that the profile was created from a difference computer?
Yes. You change a computer and create a new certificate, but the previous profile hasn't match it. You could also create another development provisioning profile that matches your existed certificate.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.