Hi. This morning I decide to try the new iOS automatic provisioning in Visual Studio for Windows. I noticed that this feature mysteriously invalidates my otherwise valid Distribution profile. Follow the steps below to reproduce, but in short - have a valid Distro profile in Apple account, In VS with Autoprovisioning enabled disconnect and reconnect to the Mac. These two steps will make you Distribution profile invalid.
So, why is it happening? Is it supposed to happen? How does it affect the production distribution of the app via the Microsoft AppCenter?
Here are the steps:
1) Note two valid profiles in the app developer portal - one for Distribution and another for Development
2) Restart Visual Studio for Win (15.7.3) or, while the VS is open simply disconnect and reconnect the Mac. Here is the excerpt from the Xamarin output while the VS is reconnecting with the Mac:
.....
Connection to 'mshapiro-Mac' completed successfully
Fetching valid and locally installed signing identities...
Resolving certificate...
Syncing certificates for "Currier, McCabe & Associates, Inc" team...
Saving iOS Development certificates...
Syncing App IDs for "Currier, McCabe & Associates, Inc" team...
Trying to find App IDs matching iOS and com.cma.lats...
Updating existing App ID...
Updating VS com cma lats entitlements...
Automatic signing was cancelled because there was a change in your project while signing so it will be run again.
Resolving certificate...
Fetching valid and locally installed signing identities...
Syncing certificates for "Currier, McCabe & Associates, Inc" team...
Saving iOS Development certificates...
Trying to find App IDs matching iOS and com.cma.lats...
Syncing App IDs for "Currier, McCabe & Associates, Inc" team...
Updating existing App ID...
Updating VS com cma lats entitlements...
Making sure that connected devices are registered in "Currier, McCabe & Associates, Inc" team...
Syncing devices for "Currier, McCabe & Associates, Inc" team...
Processing iPad devices...
Processing iPhone devices...
Processing iPod devices...
Processing Apple Watch devices...
Syncing provisioning profiles for "Currier, McCabe & Associates, Inc" team...
Saving iOS profiles...
Fetching additional data about profile's certificates and devices for VS: com.cma.lats Development...
Downloading the list of devices and certificates for VS: com.cma.lats Development...
Running update request for VS: com.cma.lats Development...
Downloading provisioning profile: VS: com.cma.lats Development...
Saving provisioning profile: VS: com.cma.lats Development...
3) Let's go back to the developer portal and check the profiles. Note the Distribution profile is now Invalid
4) To fix it I need to click the Generate button.
@AmyB - Hi. Tagging you here after I saw you posted a blog about the auto provisioning - hope you can help.