如何让 Xcode 6 重新生成配置文件 [英] How to get Xcode 6 to regenerate provisioning profile

查看:33
本文介绍了如何让 Xcode 6 重新生成配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新的 iOS 开发人员,我的 Xcode 生成的配置文件有一个奇怪的问题.我是我团队(以及我公司)中唯一的开发人员,但配置文件显示了 50 个证书.我只有一个开发证书,并且是唯一一个开发的人.我只使用一台 Mac 和一台 Mac 服务器.我不确定这是怎么发生的.我想我还不能在这里发布图片,但是在会员中心,点击 iOSTeam Provisioning Profile 时它会显示:

I'm a new iOS developer and I am having a strange problem with my Xcode-generated provisioning profile. I am the only developer on my team (and in my company) and yet the provisioning profile shows 50 certificates. I only have one development certificate and am the only person developing. I only use one Mac and one Mac server. I'm not sure how this happened. I guess I can't post an image here yet, but on Member Center, when clicking on the iOSTeam Provisioning Profile it shows:

  • 名称:iOSTeam 配置文件:*
  • 类型:iOS 开发应用 ID:
  • Xcode iOS 通配符应用 ID (*)
  • 证书:总共 50 个
  • 设备:总共 5 个
  • 启用的服务:无
  • 到期日期:2016 年 1 月 2 日
  • 状态:活动(由 Xcode 管理)

我在这里和网络上的其他地方进行了搜索,并尝试了很多方法让 Xcode 简单地创建一个新的配置文件,但它似乎总是重新创建一个具有 50 个证书的配置文件.我试过了:

I've searched here and elsewhere on the web and tried many ways to get Xcode to simply create a new provisioning profile, but it always seems to just recreate one with 50 certificates. I've tried:

  • 从 Xcode 中删除所有配置文件
  • 在 Xcode 中注销我的开发者帐户
  • 删除会员中心的所有配置文件
  • 重启Xcode

此时,Xcode 仅使用 50 个证书重新创建了 iOSTeam Provisioning Profile.

At this point, Xcode just recreates the iOSTeam Provisioning Profile with 50 certificates.

我还撤销了我的开发证书,创建了一个新证书,并让 Xcode 重新创建了配置文件.同样的事情发生了.

I have also revoked my development certificate, created a new one, and had Xcode recreate the provisioning profile. Same thing happened.

我已经创建了自己的配置文件,并且该配置文件是正确的.但是,我想让 Xcode 管理所有这些,所以更愿意使用那个.

I have created my own provisioning profile and that one is correct. But, I'd like to have Xcode manage all this so would prefer to use that one.

我已经和 Apple 谈过,他们不知道发生了什么,但不要认为这真的有问题,因为这个配置文件工作正常.他们说继续使用这个.但是,我想我有点神经质,想要一个正确的个人资料.

I've talked to Apple, and they don't know what happened, but don't think there is really an issue since this profile is working OK. They said to just keep using this one. But, I guess I'm neurotic and would like a correct profile.

我想我真的有两个问题:

I guess I really have two questions:

  • 有没有人见过这种情况?如果有,您知道是什么原因造成的(以及如何解决)?
  • 有没有人想出如何让 Xcode 从头开始​​真正重新创建配置文件?

感谢任何见解和帮助.

推荐答案

有没有人想出如何让 Xcode 从头开始​​真正重新创建配置文件

Has anyone figured out how to get Xcode to truly re-create a provisioning profile from scratch

是的,但这并不容易.您必须在您的计算机和会员中心删除与证书和配置文件相关的所有内容.

Yes, but it's not easy. You have to delete everything related to certificates and provisioning profiles, both on your computer(s) and at the Member Center.

  • 因此,首先您退出 Xcode 并重新启动计算机,以便不缓存任何内容.

  • So, first you quit Xcode and restart the computer so that nothing is cached.

现在删除与 Xcode 相关的所有缓存,正如我在这里解释的:如何清空缓存并清理所有目标 Xcode 4

Now delete all caches associated with Xcode, as I explain here: How to Empty Caches and Clean All Targets Xcode 4

删除~/Library/MobileDevice/Provisioning Profiles的内容.

使用钥匙串访问删除您的身份和证书.

Use Keychain Access to delete your identities and certificates.

在您开发的每台机器上执行上述操作!

Do the above on every machine you develop on!

前往会员中心,一一撤销/删除绝对所有内容.这可能是一个漫长的过程.您将无法删除应用商店中已有应用的分发证书,但您可以删除其他所有内容.

Go to the Member Center and revoke/delete absolute everything, one by one. This can be a long process. You won't be able to delete distribution certificates for apps already on the app store, but everything else you will be able to remove.

为了安全起见,请访问每台设备并删除所有配置文件(常规设置).

Just to be on the safe side, go to every device and delete any profiles (General settings).

您现在可以开始申请开发证书的过程.我总是手动执行此操作,从 Keychain Access 生成请求并将其上传到会员中心.当您在钥匙串中下载并安装证书后,启动 Xcode 并连接一个设备并要求将其用于开发.您最终将获得一个新的团队资料.我希望.

You can now begin the process of requesting a development certificate. I always do this manually, generating the request from Keychain Access and uploading it to the Member Center. When you've downloaded and installed the certificate in the keychain, launch Xcode and attach a device and ask to use it for development. You will end up with a new team profile. I hope.

这篇关于如何让 Xcode 6 重新生成配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆