简体   繁体   English

永久删除Xcode管理的自动配置文件

[英]Permanently remove automatic provisioning profile managed by Xcode

A while ago, when I was refreshing (provisioning profiles in XCode, it kept bugging me to create a profile after every refresh. 不久之前,当我刷新时(在XCode中配置配置文件,它每次刷新后都会让我烦恼创建配置文件)。

After a few refreshes, I allowed it to create one. 经过几次刷新后,我允许它创建一个。 I assumed it would simply be a certificate signing request, but it instead created an iOS cert and provisioning profile. 我假设它只是一个证书签名请求,但它创建了一个iOS证书和配置文件。

However, the automatic addition of all listed devices makes it quite bad. 但是,所有列出的设备的自动添加使其非常糟糕。

I have tried multiple ways to delete it, be it deleting the cert/provisioning profile from the Apple developer portal, and deleting the profile from Xcode, the .mobileprovision folder, and Keychain. 我尝试了多种方法来删除它,无论是从Apple开发人员门户删除证书/配置文件 ,还是从Xcode, .mobileprovision文件夹和Keychain中删除配置文件。 None have worked; 没有人工作; it disappears for a while, and then resurfaces. 它会消失一段时间,然后重新浮出水面。

How can I stop this profile from being generated and updated? 如何停止生成和更新此配置文件? It's conflicting with my CSR-generated profile, and causing codesign errors. 它与我的CSR生成的配置文件冲突,并导致协同设计错误。

There was apparently an automatic provisioning option you could untick, but I can't find it. 显然有一个你可以解开的自动配置选项,但我找不到它。 all devices automatically added to team provisioning profile? 所有设备都自动添加到团队配置文件中?

Have a look on xcode build settings. 看看xcode构建设置。 You should only choose your team in general preferences tab. 您只应在常规首选项选项卡中选择您的团队。 Then go to build settings tab and choose the right provisioning profile under "code signing" section. 然后转到构建设置选项卡,并在“代码签名”部分下选择正确的配置文件。 It should fix the issue, if it doesn't remove certificates from keychain and re-download/install the right certificate from developer center. 它应该解决问题,如果它不从密钥链中删除证书并从开发人员中心重新下载/安装正确的证书。

I was getting stumped by this too; 我也被这个难过了; I wanted to use my own provisioning profile because it was associated with an explicit App ID I needed to enable push notifications, but Apple kept on using a wildcard XC: com.myapp.* profile instead. 我想使用自己的配置文件,因为它与启用推送通知所需的显式App ID相关联,但Apple继续使用通配符XC: com.myapp.*配置文件。 Eventually the solution that worked for me was to use the developer portal to change the auto-generated profile to use my explicit App ID, then re-download and install. 最终,对我有用的解决方案是使用开发人员门户更改自动生成的配置文件以使用我的显式App ID,然后重新下载并安装。 I never managed to remove the auto-generated profile, but I made it work for me and it solved my problem. 我从未设法删除自动生成的配置文件,但我让它适用于我,它解决了我的问题。

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

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