Xcode 8 Profiles Won't Download

I have an issue where some of the profiles I am using are not able to be used in xCode 8. When I go to preferences and see a list of profiles for my team when I hit download the download link just turns gray and if I look in the mobile devices folder where it downloads the profiles it is downloading it but it never recognizes it in xCode. The link just turns black again and it still says download even tho the profile is in the Mobile Devices folder.


Works fine in xcode 7

I have the exact same issue. Deleted all of the provisioning profiles and redownloaded all profiles from Xcode 8.

Out of roughly 50 provisioning profiles, less than half of them are recognized by XCode 8 with no apparent rhyme or reason why some work and some don't.

Duplicated issue with two separate team accounts on two separate machines with the same profiles not being recognized on both machines.

I am experiencing the same issue as well. All of my provisioning profiles were able to be dowloaded (the download link went away after hitting "Download All") and used properly in Xcode 7.3.1, but when I upgraded to Xcode 8, some of them stopped being recognized it seems. The download links showed up next to some of the profiles again and clicking download just makes the download link gray out. They are still in the folder and clicking downlaod changes the date modified on the file, but it is not being recongnized by Xcode and it is preventing me from pairing Apple Watches to my app (two of the profiles that are no longer being recognized are a watchkitapp profile and a watchkitextension profile) as when I try to pair, the log complains about not having a certain provisioning profile.


EDIT: It turned out that I was able to get the watches pairing (for an ad hoc distribution archive at least) by unchecking the "Automatically manage signing" setting in the General tab and then re-checking it and then selecting my team. The information in the general tab was then the same as before I unchecked it, but this process altered my plist slightly. Afterward, I was able to pair the watches even though many of the provisioning profiles still had the download link next to them.

I have the same issue,

as a workaround if you select 'Import' in the dropdown where you pick the profile and point to the file - xcode will recognize it

I have the same issue since upgrade to XCode 8.

I do not find the 'Import' command. Can you give more details ?


Thank you

My entire team has been having this issue since XCode8 came out. Still looking for a solution. I've tried recreating all provisioning profiles, downloading manually, deleting and re-adding account with no solution. Sometimes performing these actions changes which profiles download but there is no consistency which ones do or don't.

Same issue here. Brand new installation of macOS Sierra, and a fresh installation of Xcode 8. Downloading provisioning profiles that have worked perfectly up until now is totally flaky. Some of them seem to download, but the "Download" button remains available for others.

Also facing this issue.

I'm having this issue too. Man Apple, do you people test anything you release to the public? I have seen a lot of buggy versions of Xcode and dealt with it, but Xcode 8.0 is nearly unusable.

I'm also having this same issue. The problem is that I can't sign my app that uses notifications with my provisioning profile that enables push notifications. Is there a manual way to import the provisioning profile?

@Apple Are we going to get an official acknowledgement of this sometime soon? This is hampering many developer's ability to get things done. There is also an ongoing stackoverflow post with over 900 views and a bounty on it with no solution. http://stackoverflow.com/questions/39710947/xcode-8-provisioning-profile-wont-download?answertab=votes#tab-top

I have same issue

I am having this issue as well. It is a blocker for me. It started appearing after I updated to Xcode 8 and checked the push notifications toggle button in target->capabilities. If I go back and uncheck it then I can submit an app store build. This is definitely a bug. Please fix it asap!

Same issue and also fully blocked from deploying updates.

Thanks for your report. This is a bug we're aware of in Xcode 8. Note that this UI in Xcode is a convenience and shouldn't block your work. The profiles you'd like to download are still available following these steps:


1) Visit developer.apple.com in Safari

2) Click Account and sign in

3) Click on Ceritficates, Identifiers, and Profiles

4) Navigate to the profile you're interested in and download it

5) Drag the downloaded profile onto Xcode's icon in the dock.


At this point, your profile will be installed on your Mac and usable within Xcode.

unfortunatelly manually downloading the provisioning profile does not always work

in cases where it doesn't work, regeneration of the profile works, though there's magically an additional line in the account profiles (didn't see that this creates any problem... yet...). no duplicate line in xcode 7


In 8.1 beta (8T47) and this issue not fixed

Same bug here. Any workaround?

This did not work. This provisioning profile still showed as requiring download and couldn't be added to a project.


After a bit more frantic experimentation ⚠ what did get this to work was renaming the profile then re-generating it.


If this additional step (do above at step 4) still doesn't work try quitting XCode and re-opening. Don't forget to clean your project before you quit XCode.

Apple,


Are you aware of the feedback from your developers that the solution you propose is not working. This is seriously debilitating to companies that are relying on your frameworks. Can you assign some one who knows how to fix the problem.



cc: ceo@apple.com

I also see this error. The only profile that can't be downloaded is "iOS Tem Provisioning Profile : *", so nothing works at all! Console does show this, though:

10/30/16 4:06:44.524 PM Xcode[35213]: <DYMobileDevice: 0x7fd461e1f420>: failed to acquire service transport reservation: Error Domain=DYAMDErrorDomain Code=-402653150 "(null)"

Agreed! As a start up trying to move quickly on Apple technologies, problems like this are slowing us down every single step of the way.


My Xcode doesn't even see the profiles I have in the member centre. Each time we add a device I have to re-create the profiles and re-distribute them manually to each team member.

Hi same issue here, so are we going to have a workable workaround? For us it makes it inpossible to debug app on device.

I may have identified the source of this issue: If you don't have the certificates and keys for a profile available to you in your keychain locally, then the provisioning profile will not report as downloaded, it will stay gray. Can others verify that this is the case for them?

This amazing how one can break so much stuff.


Profiles were always a mess.

I never understood why, if I add a new device to an AdHoc, XCode can't simply use the new one. Event if I download it and delete it it would requite manual setup.

Now this new fancy auto stuff comes, breaks the old way and even does not work all the time the way you need it to.


New Bug: if you sort profiles by date then delete the oldest one at the top, the list becomes unsorted again!

Not a big deal, but it is a mess.


Edt: before I forgot. Maybe Visual Studio for Mac will ease the pain

I have the same problem. I manage more than 100 applications (enterprise account) with more 100 profiles.

1) Button "Download all profiles" does not work, with a error message (There is no iOS App ID with ID 'XXXXX' on this team.). It download some profiles but not all.

2) Button "Download" works for some profiles only

3) Download all profiles from apple member center, and drag it in the Xcode icon does not work (Xcode never detect the provisionning profile, button Download always on)


We use script to compile and build IPA, but the script fails for some applications during export archive because Xcode can't find the profile while the profile is present in xcode profile directory ../Library/MobileDevice/Provisioning Profiles/


Please fix this

I get the same issue. For what it's worth, my system log shows this:


Nov 24 00:49:27 Lukes-iMac Xcode[7908]:  DVTPortal: Service '<DVTPortalService: 0x7fa35a308c60; action='downloadDirectInstallerCerts'>' encountered an unexpected result code from the portal ('1200')
Nov 24 00:49:27 Lukes-iMac Xcode[7908]:  DVTPortal: Error:
  Error Domain=DVTPortalServiceErrorDomain Code=1200 "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support" UserInfo={payload=<CFBasicHash 0x7fa35a409a60 [0x7fff771bb440]>{type = mutable dict, count = 10,
  entries =>
  0 : <CFString 0x7fa35a435cb0 [0x7fff771bb440]>{contents = "requestId"} = <CFString 0x7fa35a690f40 [0x7fff771bb440]>{contents = "BF8D3DC1-7B1C-4013-BA86-ED5B7B8FC68A"}
  1 : responseId = <CFString 0x7fa35a43b4f0 [0x7fff771bb440]>{contents = "8dde27d9-f4c2-4483-a144-9616159cc0a8"}
  2 : <CFString 0x7fff770e5ea0 [0x7fff771bb440]>{contents = "protocolVersion"} = QH65B2
  3 : <CFString 0x7fa35a410240 [0x7fff771bb440]>{contents = "requestUrl"} = <CFString 0x7fa35a693d80 [0x7fff771bb440]>{contents = "https://developerservices2.apple.com/services/QH65B2/mac/downloadDirectInstallerCerts.action"}
  6 : <CFString 0x7fa35a683130 [0x7fff771bb440]>{contents = "userLocale"} = en_US
  8 : resultCode = <CFNumber 0x4b037 [0x7fff771bb440]>{value = +1200, type = kCFNumberSInt64Type}
  9 : userString = <CFString 0x7fa35a407940 [0x7fff771bb440]>{contents = "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support"}
  10 : <CFString 0x7fa35a697990 [0x7fff771bb440]>{contents = "resultString"} = <CFString 0x7fa35a407940 [0x7fff771bb440]>{contents = "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support"}
  11 : httpCode = <CFNumber 0xc837 [0x7fff771bb440]>{value = +200, type = kCFNumberSInt64Type}
  12 : <CFString 0x7fa35a464fa0 [0x7fff771bb440]>{contents = "creationTimestamp"} = <CFString 0x7fa35a408620 [0x7fff771bb440]>{contents = "2016-11-24T00:49:26Z"}
  }
  , NSLocalizedDescription=You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support}
Nov 24 00:49:27 Lukes-iMac Xcode[7908]:  IDEProvisioning: +[IDEProvisioningSnapshot _onlineSigningIdentitiesWithSession:team:error:]: Error Domain=DVTPortalServiceErrorDomain Code=1200 "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support" UserInfo={payload=<CFBasicHash 0x7fa35a409a60 [0x7fff771bb440]>{type = mutable dict, count = 10,
  entries =>
  0 : <CFString 0x7fa35a435cb0 [0x7fff771bb440]>{contents = "requestId"} = <CFString 0x7fa35a690f40 [0x7fff771bb440]>{contents = "BF8D3DC1-7B1C-4013-BA86-ED5B7B8FC68A"}
  1 : responseId = <CFString 0x7fa35a43b4f0 [0x7fff771bb440]>{contents = "8dde27d9-f4c2-4483-a144-9616159cc0a8"}
  2 : <CFString 0x7fff770e5ea0 [0x7fff771bb440]>{contents = "protocolVersion"} = QH65B2
  3 : <CFString 0x7fa35a410240 [0x7fff771bb440]>{contents = "requestUrl"} = <CFString 0x7fa35a693d80 [0x7fff771bb440]>{contents = "https://developerservices2.apple.com/services/QH65B2/mac/downloadDirectInstallerCerts.action"}
  6 : <CFString 0x7fa35a683130 [0x7fff771bb440]>{contents = "userLocale"} = en_US
  8 : resultCode = <CFNumber 0x4b037 [0x7fff771bb440]>{value = +1200, type = kCFNumberSInt64Type}
  9 : userString = <CFString 0x7fa35a407940 [0x7fff771bb440]>{contents = "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support"}
  10 : <CFString 0x7fa35a697990 [0x7fff771bb440]>{contents = "resultString"} = <CFString 0x7fa35a407940 [0x7fff771bb440]>{contents = "You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support"}
  11 : httpCode = <CFNumber 0xc837 [0x7fff771bb440]>{value = +200, type = kCFNumberSInt64Type}
  12 : <CFString 0x7fa35a464fa0 [0x7fff771bb440]>{contents = "creationTimestamp"} = <CFString 0x7fa35a408620 [0x7fff771bb440]>{contents = "2016-11-24T00:49:26Z"}
  }
  , NSLocalizedDescription=You are not allowed to perform this operation.  Please check with one of your Team Admins, or, if you need further assistance, please contact Apple Developer Program Support.
  https://developer.apple.com/support}
Xcode 8 Profiles Won't Download
 
 
Q