ios 吊销证书 - iPhone 编程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9634321/
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
Revoked certificate - iPhone Programming
提问by kolek
I deleted a certificate in Provisioning Portal (Certificates). Now, when I want create a new certificate I see a warning and this message is sent to my email:
我在 Provisioning Portal (Certificates) 中删除了一个证书。现在,当我想创建一个新证书时,我会看到一条警告,并且这条消息会发送到我的电子邮件中:
Your Development Certificate Has Been Revoked - you have revoked your Development certificate and it's no longer valid
您的开发证书已被吊销 - 您已吊销您的开发证书,它不再有效
My account is valid.
我的帐户有效。
What can I do to add new certificate without problems or restore the old one that I have on disk?
我该怎么做才能毫无问题地添加新证书或恢复磁盘上的旧证书?
回答by JTApps
Manual Way:
手动方式:
Go to this URL (Apple developer site): https://developer.apple.com/devcenter/ios/index.action
Log in with your valid account.
On the right-hand side, there is a column with a heading "iOS Developer Program". Select the "Provisioning Portal" section.
On the left-hand side, click the row of the column that is labeled "Certificates"
Since I already have a certificate I'm not sure, but somewhere on this page you should be able to click "Request certificate" or something similar.
Wait for your new certificate, and then download and install it as before
转到此 URL(Apple 开发者站点):https: //developer.apple.com/devcenter/ios/index.action
使用您的有效帐户登录。
在右侧,有一列标题为“iOS 开发人员计划”。选择“供应门户”部分。
在左侧,单击标有“证书”的列的行
由于我已经有证书,我不确定,但是在此页面上的某个地方,您应该可以单击“请求证书”或类似内容。
等待您的新证书,然后像以前一样下载并安装它
Other details can be found in Apple's Tech Notes here: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html
其他详细信息可以在 Apple 的技术说明中找到:https: //developer.apple.com/legacy/library/technotes/tn2250/_index.html
You can ALSO have XCode create everything for you.
您还可以让 XCode 为您创建一切。
Revoke all current certificates and provisioning profiles
To invoke "Automatic Device Provisioning" open Xcode's "Window" menu > Organizer > Devices tab > "Provisioning Profile" sidebar under Library.
Check the "Automatic Device Provisioning" checkbox and click the "Refresh" button. After clicking Refresh a dialog should appear requesting your team member account credentials. It is important to answer 'yes' when asked to create your iPhone Certificates if any are needed. In that case, clicking "Submit Request" will allow Xcode to create, download and install the certificate(s).
撤销所有当前证书和配置文件
要调用“自动设备配置”,请打开 Xcode 的“窗口”菜单 > 管理器 > 设备选项卡 > 库下的“配置配置文件”侧边栏。
选中“自动设备配置”复选框,然后单击“刷新”按钮。单击刷新后,应出现一个对话框,要求您提供团队成员帐户凭据。如果需要创建您的 iPhone 证书,请务必回答“是”。在这种情况下,单击“提交请求”将允许 Xcode 创建、下载和安装证书。
What XCode is doing for you automatically, according to the above tech note:
根据上述技术说明,XCode 会自动为您做什么:
1) Prompts to create and install your "iPhone Developer" certificate if one doesn't already exist in the iOS Portal
1) 如果 iOS 门户中尚不存在“iPhone 开发人员”证书,则会提示创建并安装该证书
2) (for admin or agent roles) prompts to create and install your "iPhone Distribution" certificate if one doesn't already exist in the iOS Portal
2)(对于管理员或代理角色)如果 iOS 门户中尚不存在“iPhone 分发”证书,则会提示创建并安装您的“iPhone 分发”证书
3) Creates a Wildcard App ID if one does not already exist in the iOS Portal
3) 如果 iOS 门户中尚不存在通配符应用程序 ID,则创建一个通配符应用程序 ID
4) Creates, or updates with new devices added to the portal, your iOS Team Provisioning Profile and installs that into your profile library
4) 创建或更新添加到门户的新设备、您的 iOS 团队供应配置文件并将其安装到您的配置文件库中
5) Syncs the profile library on your local machine with the profiles on the iOS Portal
5) 将本地机器上的配置文件库与 iOS 门户上的配置文件同步
回答by Tung Fam
Solution for Xcode 8
Xcode 8 的解决方案
- Xcode Preferences > Accounts
- Choose your account
- Click 'View Details'
- Click 'Download all profiles'
- Restart Xcode
- This step is optional, meaning that might work without this: Product > press 'alt' button > Clean Build Folder
- Xcode 首选项 > 帐户
- 选择您的帐户
- 点击“查看详情”
- 点击“下载所有配置文件”
- 重启Xcode
- 这一步是可选的,这意味着没有这个也可以工作:产品>按“alt”按钮>清理构建文件夹
These solved my issue.
这些解决了我的问题。