简体   繁体   English

永久删除Xcode设置配置文件

[英]Permanently remove Xcode provisioning profiles

How do I permanently delete the provisioning profiles that Xcode creates and manages? 如何永久删除Xcode创建和管理的配置文件?

I tried: 我试过了:

  • Deleting them from the Apple Developer site 从Apple Developer网站删除它们
  • Selecting them in Xcode's Accounts settings and choosing Move to Trash 在Xcode的“帐户”设置中选择它们,然后选择“ 移至垃圾箱”
  • Deleting the profiles on my connected iPhone, in Xcode's Devices window 在Xcode的“设备”窗口中删除连接的iPhone上的配置文件
  • Deleting and re-adding the Apple ID from Xcode's Accounts settings. 从Xcode的“帐户”设置中删除并重新添加Apple ID。
  • Making sure ~/Library/MobileDevice/Provisioning Profiles is empty 确保~/Library/MobileDevice/Provisioning Profiles为空
  • Quitting and re-launching Xcode 退出并重新启动Xcode

But then when I go to Xcode's Accounts settings and click Download All , the deleted profiles re-appear. 但是,当我转到Xcode的“帐户”设置并单击“ 全部下载”时 ,已删除的配置文件会重新出现。 Where are they coming from? 他们来自哪里? How do I get rid of them? 我如何摆脱它们?

  • First delete them from the Apple Developer Site. 首先从Apple Developer Site删除它们。
  • Do not allow Xcode to manage it via Automatic option ( most important thing ). 不允许Xcode通过Automatic选项来管理它( 最重要的事情 )。 Always choose provisionings you create manually in Developer Site.: 始终选择在开发人员站点中手动创建的配置。

在此处输入图片说明

  • you may remove them via Accounts Preferences (right click on item -> Move to Trash): 您可以通过“ 帐户首选项”将其删除(右键单击项目->移至垃圾箱):

在此处输入图片说明

I have no idea if this is safe, but I deleted the files ~/Library/Developer/Xcode/DeveloperPortal* . 我不知道这是否安全,但是我删除了~/Library/Developer/Xcode/DeveloperPortal* After doing that, the profiles are no longer re-created when I click Download All . 完成此操作后,单击“ 全部下载”将不再重新创建配置文件。 This worked on two separate machines. 这在两个单独的机器上工作。

After doing this, I had to delete and re-add the Apple IDs to Xcode, so that it could find their teams again. 完成此操作后,我不得不删除Apple ID并将其重新添加到Xcode,以便它可以再次找到他们的团队。 I didn't notice any other problems. 我没有发现任何其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM