Xcode 8 provisioning profile won't download

36,726

Solution 1

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.

For the OP — if manually installing the profile this way didn't resolve the issue, then you're likely seeing another configuration problem or a bug. Could you clarify what you saw after you manually installed the profile and selected it in the General tab — did you get a build error or other issue?

Solution 2

I'm seeing the same issue where the download button is grayed but the download never seems to complete.

I manually deleted all the profiles in finder and clicked on download. Even if the download doesn't seem to complete, the profile is still downloaded...

You can check out your profiles in finder at

HOME/Library/MobileDevice/Provisioning Profiles

enter image description here

Solution 3

I got around it by unchecking and rechecking:

Project Settings -> General -> Signing -> 'Automatically manage signing'

Solution 4

I was having this same issue. Here is what I did that solved the problem for me.

  • First I right clicked on each of the two profiles that would "grey-non-download" and moved to trash.
  • Then I deleted the developer account within Xcode.
  • I re-added the developer account, went back to details and download all.

It worked for me, hope this helps.

Solution 5

In mu case the issue started appearing after I added Push capability(I checked the push notification toggle button in target->capabilities) If I go and uncheck that then I can build and upload to app store.

Share:
36,726
Wladek Surala
Author by

Wladek Surala

Updated on June 26, 2020

Comments

  • Wladek Surala
    Wladek Surala almost 4 years

    I recently updated to Xcode 8 and as I click on "download" option next to provisioning profile in Xcode/Preferences/Accounts/View Details menu it changes to gray and does not download. After restarting Xcode the download button is again clickable and the problem persists. Xcode 8 "starts" download and button is grey forever Manual download of provisioning profile and dropping on Xcode icon don't add the profile to specific developer account in Xcode 8. Anyone had this problem recently and solved it? I checked all questions related to new Xcode version, still no solution.

  • Wladek Surala
    Wladek Surala over 7 years
    something has changed - now profiles download in random way, some are being downloaded, with others problem persists, at last some show as downloaded and after few seconds the download button appears again. I'll try to work on it.
  • blahartinger
    blahartinger over 7 years
    Did not work for me. I'm seeing same behaviour as @gameCon
  • Wladek Surala
    Wladek Surala over 7 years
    in my case, after doing what you said, some profiles are downloaded and not seen in Xcode 8. I tried to delete all profiles manually and download them again, but it does not changes anything with their visibility in Xcode.
  • danyamachine
    danyamachine over 7 years
    to delete your defaults you might need to do defaults delete com.apple.dt.Xcode rather than defaults delete com.apple.Xcode
  • Wladek Surala
    Wladek Surala over 7 years
    I tried this way, but no success. I've switched to automatic provisioning profiles way, perhaps this is just a bug to file.
  • gop
    gop over 7 years
    An update. I was able to make it work. For some strange reason in the developer portal my provisioning profile for distribution (for testflight) was set to work with some certificate for which I did not have the private key in my keychain. I changed the certificate with another one for which I had the private key and everything worked well. Check your provisioning profiles! I am not sure if this is Xcode8 related but surely I didn't change it by myself.
  • Jonathan
    Jonathan over 7 years
    Well, I've tried this on all 3 profiles we have and it doesn't seem to do anything. I download the profile from the website and double click on it. This brings up Xcode, but otherwise no other indication anything has happened. And the profile still has the Download button in Preferences.
  • tigerMike
    tigerMike over 7 years
    Note, my case the app it is distributed ad-hoc, and has had no source code or feature changes in months, so it is not (for me) related to that. I only need to profiles when I add devices.
  • Wladek Surala
    Wladek Surala over 7 years
    This is of course the right thing to do from Xcode 8 and iOS 10, and that is how (i suppose almost all) developers put "provisioning nightmare" to an end, +1. My question is about solving the problem with Xcode's UI, since there are some cases when somebody would like to use "old" provisioning profiles in a project that is not new.
  • CodeSmith
    CodeSmith over 7 years
    Same problem but unchecking and rechecking didn't fix it this time. Had to leave it unchecked and manually select the correct provisioning profiles, once I did that it worked correctly. When left on Automatic, xcode would use a provisioning profile it managed (doesn't appear in web portal) and it just wasn't being updated with new devices.
  • iAkshay
    iAkshay over 7 years
    1st point only solved it. No need to delete and re-add dev account. In my case provisioing profile was renewed. As you mentioned in the 1st point 'each of two profiles', I just had look in for it, but there that was not two. So I visit developer portal and click my provisioning profile->edit->generate. Now coming back to the XCode account preferenc, I see there are 2 profiles. 1 with download option and another without it. So the first point : moved profile without download button to trash, and download other one successsfully
  • Wladek Surala
    Wladek Surala over 7 years
    please read whole discussion before posting - manual deletion of provisioning profiles was mentioned here
  • Andrew
    Andrew over 7 years
    Also didn't fix the problem for me.
  • Devs love ZenUML
    Devs love ZenUML over 7 years
    This didn't fix the problem for me. I had to re-open another project (which worked before) and close it and open the one had problems to make it work. I repeated this twice.
  • Mathew Antony
    Mathew Antony over 7 years
    Worked for me too!
  • Sam
    Sam over 7 years
    Isn't that the point of "automatically manage signing"? Turning it of enables me to manual select my provisioning profile.
  • Wladek Surala
    Wladek Surala about 7 years
    this didn't work for me, however it probably may work for others. Indeed, keychain has some known bugs related to add/delete functions, at least on iOS, so macOS may be similar, but I don't have full justification for this statement.
  • nacho c
    nacho c about 7 years
    @gameCon I absolutely agree, It seems to be a keychain bug. I don't have a justification too.