Re: Any way to get Xcode to auto-update profiles?
Re: Any way to get Xcode to auto-update profiles?
- Subject: Re: Any way to get Xcode to auto-update profiles?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 19 Dec 2013 10:17:35 -0600
On 18 Dec 2013, at 11:12 PM, Rick Mann <email@hidden> wrote:
> It seems that Xcode server will automatically use the latest provisioning profile for an iOS build, but when I run it locally, if I don't expressly update them, it doesn't get them for me.
>
> Is there a setting somewhere I can use to at least update the profiles before doing an Archive?
Let me see if I understand…
When you ship a revision off to a bot, Xcode Server uses current provisioning profiles. When you sit down at the server machine and log into your user account, the profiles are the ones you had the last time you built from that account. Am I right?
---
Server has its own store of provisioning profiles. As I remember, it's in a subdirectory of /Library/Server/Xcode/Data. The profile directory is locked down as 0600, and has to be: Users don't need it, shouldn't be allowed to tamper with it, and (I assume) Xcode Server may have to deal with profiles that not every user account is entitled to. Server updates its profile zoo automatically because it has to; it's a server, and some things have to be autonomous.
The profiles in your Accounts panel are user-local, in ~/Library/Developer/Xcode/DeveloperPortal*.db.** Different store, and users of the Xcode IDE have a way to reload them manually. It's a defensible decision, at least as a matter of giving automatic reloads a low-enough priority that it hasn't made it into current versions.
** (For those playing at home: I won't characterize the contents, but such things are never a good idea to edit independently of the applications that create them.)
---
Having the Xcode IDE reload automatically, at least as an application preference or per-team option,*** is an interesting idea, and off the top of my head, I don't see a downside (other than feature bloat and load on the ADC servers). File a bug.
*** ("What's so hard about adding a preference for each suggestion that I and a thousand other users might make?")
Another interesting idea would be a command-line utility that could do the downloads. It might come in an early Run Script build phase. (But the build system has always been touchy about build-time file changes, and how does the script know not to reload in the Server environment? Maybe a force-even-if-Server command flag.) Or you could put it into a pre-action script (again with the Server-environment problem).
— F
--
Fritz Anderson email@hidden
Xcode 5 Start to Finish: Available April 2014 from Addison Wesley
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden