Xcode 8 provisioning profile won't download

2020-05-12 04:55发布

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.

14条回答
唯我独甜
2楼-- · 2020-05-12 05:01

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

查看更多
走好不送
3楼-- · 2020-05-12 05:03

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?

查看更多
Lonely孤独者°
4楼-- · 2020-05-12 05:06

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

查看更多
女痞
5楼-- · 2020-05-12 05:07

The answer is here.

Its doesn't sound much but it really worked for me.

Just right click on the provision profile and click on Show in finder. Then delete all the provision profile in the entire folder.

Not goto Xcode project settings and Check the checkbox, Automatically manager signing. The xcode will do the rest for you.

查看更多
Evening l夕情丶
6楼-- · 2020-05-12 05:10

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.

查看更多
ゆ 、 Hurt°
7楼-- · 2020-05-12 05:14

I got around it by unchecking and rechecking:

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

查看更多
登录 后发表回答