xcode 您的帐户已有有效的 iOS 开发证书

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31465445/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:29:49  来源:igfitidea点击:

Your account already has a valid iOS Development certificate

iosiphonexcode

提问by alexgophermix

I borrowed an iPad mini (MF432C/A) iOS 8.0.2 from another department in my company working on a differentiOS app and tried to build my application.

我从我公司的另一个部门借了一台 iPad mini (MF432C/A) iOS 8.0.2 来开发不同的iOS 应用程序并尝试构建我的应用程序。

I received the following error when attempting to build on it via Xcode Version 6.4 (6E35b)

尝试通过 Xcode 版本 6.4 (6E35b) 在其上构建时收到以下错误

Failed to code sign ----.

None of the valid provisioning profiles include the devices: 725 product dev iPad mini.

Xcode can attempt to fix this issue.

无法编码签名----。

任何有效的配置文件都不包括以下设备:725 product dev iPad mini。

Xcode 可以尝试修复这个问题。

enter image description here

enter image description here

After clicking Fix Issue which has been doing a decent job of auto-provisioning unknown devices lately I get the following message:

单击最近在自动配置未知设备方面做得不错的修复问题后,我收到以下消息:

Your account already has a valid iOS Development certificate

You have a valid iOS Development certificate in the Member Center, but it is not installed locally. If your signing identity is installed on another Mac, you can export a developer profile on that Mac and import it on this Mac. You can also revoke your current certificate and request a new one.

您的帐户已有有效的 iOS 开发证书

您在会员中心拥有有效的 iOS 开发证书,但未在本地安装。如果您的签名标识安装在另一台 Mac 上,您可以在该 Mac 上导出开发人员配置文件并将其导入到这台 Mac 上。您还可以撤销当前的证书并申请新的证书。

enter image description here

enter image description here

From the relevant Apple docsit looks like I'm missing the correct signing identity to build my app on this device. The issue is that this is likely the signing identity of the developers of the other application. Is there a way to bypass this error and provision the device for my own application?

从相关的Apple 文档来看,我似乎缺少在此设备上构建我的应用程序的正确签名身份。问题是这可能是其他应用程序开发人员的签名身份。有没有办法绕过这个错误并为我自己的应用程序配置设备?

Edit:Under the activity log I see the following two Code Signing errors:

编辑:在活动日志下,我看到以下两个代码签名错误:

Check dependencies

Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles include the devices: 725 product dev iPad mini

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.4'

检查依赖项

代码签名错误:找不到匹配的配置文件:没有有效的配置文件包括设备:725 产品开发 iPad mini

CodeSign 错误:SDK“iOS 8.4”中的产品类型“应用程序”需要代码签名

回答by Henry F

You need to install the public and private keys associated with the development profile onto the Mac you are using. They can be found in the Keychain application, and simply transferred over. You can revoke and request a new one, but then your device may not run the app from your work computer and you would have to rinse and repeat.

您需要将与开发配置文件关联的公钥和私钥安装到您正在使用的 Mac 上。它们可以在 Keychain 应用程序中找到,然后简单地转移过来。您可以撤销并请求一个新的,但是您的设备可能无法从您的工作计算机运行该应用程序,您将不得不冲洗并重复。

If you've already done this and are still experiencing issues, try registering the device manually under Certificates, Identifiers & Profiles in the member centre and then refresh the account under Xcode > preferences > accounts > [accountname]

如果您已经这样做并且仍然遇到问题,请尝试在会员中心的证书、标识符和配置文件下手动注册设备,然后在 Xcode > 首选项 > 帐户 > [帐户名称] 下刷新帐户