Xcode 8.3 / Xcode 9.0 Refresh provisioning profile

2019-01-12 16:12发布

I have added some new devices. How can I refresh the provisioning profile, as Xcode 8 automatically manages signing assets?

I have found this question: Refresh devices in team provisioning profile managed by Xcode 7? – but we can't do that in Xcode 8.3.

I don't have the device with me so I manually added it in the portal and also edited the provisioning profile but Xcode is not re-downloading it.

5条回答
别忘想泡老子
2楼-- · 2019-01-12 16:46

First delete the provisioning profile from ~/Library/MobileDevice/Provisioning\Profiles/ , then edit provisioning profile from developer portal and select all devices while editing Provisioning profile. Then download this profile and open in your Xcode.

查看更多
来,给爷笑一个
3楼-- · 2019-01-12 16:57

To add devices to your provisioning profile in Xcode 8 with automatic code signing, you simply need to build to the device in Xcode. Xcode will add the device's UDID and regenerate the provisioning profile automatically. If you don't have physical access to the device, I don't think there is a way to add it to your provisioning profile without going back to manually managing your devices and profiles.

查看更多
狗以群分
4楼-- · 2019-01-12 16:58

Remove the .mobileprovision file for the app this way :

The command in the terminal is : rm

enter image description here

查看更多
Animai°情兽
5楼-- · 2019-01-12 16:58

Step 1. Click on desktop then from top menu Go > Go to Folders...

enter image description here

Step 2. Write/Paste following path and enter:

~/Library/MobileDevice/Provisioning\ Profiles/

enter image description here

Step 3. Select Provisioning Profiles folder and delete all provisions profiles in it

enter image description here

Step 4. Go to xCode Preference > Accounts > Apple ID and then click on Download Manual Profiles button

enter image description here

查看更多
戒情不戒烟
6楼-- · 2019-01-12 16:59

This is what you need to do.

  1. Go to ~/Library/MobileDevice/Provisioning\ Profiles/ and delete all the provisioning profiles from there.
  2. Go to XCode > Preferences > Accounts and select the Apple Id.
  3. Click Download All Profiles. And it will download all the provisioning profiles again.

enter image description here

Xcode 9

Step 1 and 2 remain the same.

  1. Click Download Manual Profiles to update your provisioning profiles.
查看更多
登录 后发表回答