Bug 25499 - Store the Provisioning Profile's Name instead of the GUID in .csproj file
Summary: Store the Provisioning Profile's Name instead of the GUID in .csproj file
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in (show other bugs)
Version: 5.4
Hardware: Macintosh Mac OS
: Low enhancement
Target Milestone: Future Cycle (TBD)
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2014-12-18 10:33 UTC by Neal
Modified: 2016-11-08 17:25 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Neal 2014-12-18 10:33:41 UTC

I have a suggestion that I think will help solve some bundle signing issues.  I don't use "Automatic" profile types any more due to issues with my account with multiple team ID's, apps, etc. and it just isn't working well for my use.  Instead I pick the specific profile such as AppName Ad-Hoc which is the name assigned to the provision in the Apple iOS Dev portal.  

XamStudio is storing the GUID for that profile in the project file.  If I make any changes to the devices that are part of that profile such as removing a device and then refresh Xcode the GUID will change effectively breaking my signing in the project and probably a problem for CI systems.  If you instead store the selected provisioning profile name (not GUID) and do a name match then it should never break the project config.  This will also work across devs in the case where I update Xcode and they don't refresh but they do an update of the project from source control where the GUID is stored which they don't have.

Hope this makes sense but after moving away from the Automatic modes this problem has revealed itself and it looks like a simple fix.

Comment 1 Jeffrey Stedfast 2016-09-19 18:15:27 UTC
Looks like Xcode8 has started doing this as well for the same reason
Comment 2 Jeffrey Stedfast 2016-11-01 17:53:22 UTC
Sadly I didn't get around to this until too late in the cycle9 roadmap, but I do have stuff read to go for cycle10.

PR for Xamarin.iOS: https://github.com/xamarin/xamarin-macios/pull/1087
PR for Xamarin Studio: https://github.com/xamarin/md-addins/pull/1264
Comment 3 xamarin-release-manager 2016-11-08 17:25:59 UTC
Fixed in version (master)

Author: Jeffrey Stedfast
Commit: 7d9847155d782ab82d41c91ab30f0c412a708f06 (xamarin/md-addins)
Included in Commit: 4cbe705836056f53f5f2d51668eb354fad5cc92e (mono/monodevelop)

Note You need to log in before you can comment on or make changes to this bug.