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

Replies

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}

Another impacted developer checking in.


I thought I'd discovered a workaround by selecting 'Automatically manage signing' in the target config. This at least allowed me to install a build of my app onto a device. But alas, today it no longer works; even though Xcode assures me everything is OK with my profile, and Xcode builds without error, I'm told the 'App install failed: A valid provisioning profile for this executable was not found,' at the point the app tries to run.😟

I have the same problem, too.


- 'Download all' does not work

- 'Download' one does not work

- Manually downloading from iTunes Connect and openning in XCode does nothing


I've got the impressions that the newer XCode we use the more and more bugs we get with signing 😟.

I find it appalling that Apple thinks that basically saying 'you shouldn't expect this feature of Xcode to work' is an acceptable answer.... And that months (and at least one Xcode update) later it *still* isn't working.


If you put it in Xcode people *should* be able to expect it to function properly. What other things in Xcode should I expect to maybe just not work sometimes?

I'm experiencing this on Xcode 8.2.1 as well. I wish Apple fixes this. It's immensely annoyning. 😟

Same problem here... ***