ios 如何从 Xcode 中删除配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26732251/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to remove provisioning profiles from Xcode
提问by vaibhav silar
Does anyone know how to remove previously installed provisioning profiles from Xcode?
有谁知道如何从 Xcode 中删除以前安装的配置文件?
I have seen this link, but I am not able to find that location in my system.
我已经看到这个链接,但我无法在我的系统中找到那个位置。
So I think there must be some other way to remove provisioning profiles.
所以我认为必须有其他方法来删除配置文件。
回答by Shaik Riyaz
It's simple, go to this folder:
很简单,进入这个文件夹:
~/Library/MobileDevice/Provisioning Profiles/
Open finder on your mac, and click on Go -> Go to Folder ...Just paste this into the search bar and hit Open. It will show the list of provisioning profiles present in Xcode. Delete all provisioning profiles.
在 Mac 上打开 finder,然后单击Go -> Go to Folder ...只需将其粘贴到搜索栏中并点击Open。它将显示 Xcode 中存在的配置文件列表。删除所有配置文件。
回答by brandonscript
Update for Xcode 8.3
Xcode 8.3 更新
This no longer works in Xcode 8.3. It appears to be related to Apple's move to automate provisioning profile and certificate generation:
这不再适用于 Xcode 8.3。这似乎与 Apple 自动化配置文件和证书生成的举措有关:
The simplest "solution" (or workaround) is to make sure Xcode is closed, then via Terminal:
最简单的“解决方案”(或解决方法)是确保 Xcode 已关闭,然后通过终端:
rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision
In Xcode 7 & 8:
在 Xcode 7 和 8 中:
Open Preferences> Accounts
Select your apple ID from the list
On the right-hand side, select the team your provisioning profile belongs to
Click View Details
Under Provisioning Profiles, right-click the one you want to delete and select Move to Trash:
打开首选项>帐户
从列表中选择您的 Apple ID
在右侧,选择您的配置文件所属的团队
点击查看详情
在 Provisioning Profiles 下,右键单击要删除的配置文件,然后选择Move to Trash:
回答by wishab
In Xcode 6, you can do this mostly right in Xcode:
在 Xcode 6 中,您可以直接在 Xcode 中执行此操作:
- Go to Xcode -> Preferences -> Accounts.
- Choose your Apple ID in the left column.
- In the right pane, click the "View Details..." button.
- Right-click on the provisioning profile you want to delete, then click "Show Details".
- A Finder window will open up with the provisioning profile highlighted.
- Delete the selected provisioning profile.
- 转到 Xcode -> 首选项 -> 帐户。
- 在左栏中选择您的 Apple ID。
- 在右侧窗格中,单击“查看详细信息...”按钮。
- 右键单击要删除的配置文件,然后单击“显示详细信息”。
- Finder 窗口将打开,其中突出显示了配置文件。
- 删除选定的配置文件。
回答by n.by.n
- Open Terminal
- cd ~/Library/MobileDevice/
- open ./
- 打开终端
- cd ~/图书馆/移动设备/
- 打开 。/
Now the finder window will be open with Provisioning Profiles folder. Delete all or any provisioning profiles from here and it will reflect in Xcode.
现在 finder 窗口将与 Provisioning Profiles 文件夹一起打开。从这里删除所有或任何配置文件,它将反映在 Xcode 中。
回答by Jannie Theunissen
For Xcode 7, brandonscripthas the correct answer.
对于 Xcode 7,brandonscript有正确的答案。
For earlier versions:
对于早期版本:
- Log in to the Apple Developer member centre and delete the profile there: https://developer.apple.com/account/ios/profile/profileList.action
- In Xcode you go to Preferences > Accounts and click on your apple ID and
View Details...
- Then Sync your online provisioning profiles to your local machine and the deleted ones will be removed from the list:
- 登录 Apple Developer 会员中心并删除那里的个人资料:https: //developer.apple.com/account/ios/profile/profileList.action
- 在 Xcode 中,您转到 Preferences > Accounts 并单击您的 Apple ID 和
View Details...
- 然后将您的在线配置文件同步到您的本地计算机,删除的配置文件将从列表中删除:
回答by kaming
In Xcode 7:
在 Xcode 7 中:
- Go to Preferences> Accounts> Select your account and click View Details...
- In the Provisioning Profiles section, right click on the profile you want to delete and choose Move to Trash.
- Click Download allto get all the latest profiles for your account, or click Downloadnext to the profile.
- Do a sanity check in your project's target(s) Build Settings so each target is indeed using the profile you want.
- 转至首选项>帐户> 选择您的帐户,然后单击查看详细信息...
- 在 Provisioning Profiles 部分,右键单击要删除的配置文件,然后选择Move to Trash。
- 单击全部下载以获取您帐户的所有最新配置文件,或单击配置文件旁边的下载。
- 在项目的目标构建设置中进行完整性检查,以便每个目标确实使用您想要的配置文件。
回答by Feri Agusetiawan
open your terminal then use this command
打开你的终端然后使用这个命令
cd /Users/youruser/Library/MobileDevice/Provisioning\ Profiles/
check first inside your folder by use this command
使用此命令首先检查您的文件夹
ls
then if all files not use, delete by use this command
然后如果所有文件都没有使用,请使用此命令删除
rm *
回答by V D Purohit
-Download iPhone configuration utility tool
- 下载 iPhone 配置实用工具
-open it-> In Library section:- select provisioning profile(Left side of tool)
- 打开它-> 在库部分:- 选择配置文件(工具左侧)
-select provisioning profile(which you want to delete) using back space delete it.
- 使用退格选择配置文件(您要删除的文件)将其删除。
回答by Ananta K Roy
For XCode 9.3, the following steps worked for me.
对于XCode 9.3,以下步骤对我有用。
- Go to Applications > Utilities > Keychain Access
- Under the loginoption on the left panel, find Apple Worldwide Developer Relations Certification Authority. Double click to get the options under it.
- Under the Trust option, change the When using this certificateoption to Always trust.
- Exit the keychain access window, quit Xcode and restart Xcode. Rebuild the application. It should work now.
- 转到应用程序 > 实用程序 > 钥匙串访问
- 在左侧面板的登录选项下,找到Apple Worldwide Developer Relations Certification Authority。双击以获取其下的选项。
- 在 Trust 选项下,将When using this certificate选项更改为Always trust。
- 退出钥匙串访问窗口,退出 Xcode 并重新启动 Xcode。重建应用程序。它现在应该可以工作了。
回答by Joseph Lucca
I was able to delete my Provisioning Profile from XCode 6 by using the Member Center online. I then just did a refresh/Sync in XCode 6 and it disappeared.
我可以通过在线使用会员中心从 XCode 6 中删除我的配置文件。然后我只是在 XCode 6 中进行了刷新/同步,它就消失了。
In the Apple Developer Member Center I had to do two things to make it happen:
在 Apple 开发者会员中心,我必须做两件事才能做到这一点:
- Under under
Identifiers -> AP IDs
I had to first delete the old AP ID still using the old Provisioning Profile that I wanted to delete.- This step was crucial for me. If I just deleted the Provisioning Profile alone without the APP ID still using it, the Profile re-appeared in XCode after a Sync.
- Under
Provisioning Profiles
I then deleted the unwanted provisioning profile.
- 在下
Identifiers -> AP IDs
我必须首先删除旧的 AP ID 仍然使用我想删除的旧配置文件。- 这一步对我来说至关重要。如果我只是删除了 Provisioning Profile 而没有 APP ID 仍在使用它,那么在同步后该 Profile 会重新出现在 XCode 中。
- 在
Provisioning Profiles
我然后被删除不需要的供应曲线。
In XCode:
在 XCode 中:
- Under Preferences > Accounts, clicking on my apple ID and
View Details...
I Sync'd my online provisioning profiles. - The Provisioning Profile removed itself from the list.
- 在首选项 > 帐户下,单击我的 Apple ID 并
View Details...
同步我的在线配置文件。 - 供应配置文件从列表中删除了自己。