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...
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.
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:
Visit developer.apple.com in Safari
Click Account and sign in
Click on Ceritficates, Identifiers, and Profiles
Navigate to the profile you're interested in and download it
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?
In my case (Xamarin.iOS btw) I've manually deleted all provisioning profiles located in HOME/Library/MobileDevice/Provisioning Profiles but I needed to do something else to be able to deploy the app to a device:
The problem was that I had implemented the brand new iOS 10 Push Notifications Framework, which requires the addition of the following property to the Entitlements.plist:
I've had this issue too, and have had some success with renaming the profile. For example, it used to be named "[App Name] Dev", and no matter what I did, renewing, deleting and recreating with the same name, manually installing it, it just would not work at all. Until I renamed the profile to "[App Name] Development".
Actually, all provided solutions could work or not, it depends on your luck, but mainly you have to keep delete account, clean up provision profiles like "mogile_oli"'s answer, and re-add them, but also, don't forget to reset signing identities:
Accounts -> Select Added Account -> Select Team and View Details (or double click team name) -> you will see Reset button if needed, click on it,
And you really need to try to build with Automatic Signing first then remove it, it seems can't be downloaded with button, for now just ignore the download button from this page, but better to use the dialogs while you try to build.
And always Quit Xcode and Re-open it after almost each action you do, After wasting like 2 days, I made it work like this !
I had the same issue. I leave the solution that worked for me:
I deleted all certificates that were expired from my keyChain, I noticed that the new certificates didn't download because I had an expired certificate related. I don't know why it seems to be an issue of my keyChain/iTunes
I solved it by creating my own development certificate (In Xcode) and assigning it in the development provisioning profile. After I download and double click it I was able to get it working fine.