xcode 个人资料不包括证书
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47258499/
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
Profile doesn't include certificate
提问by Michel
Using Xcode 9.1, after building an iOS app, I try to archive it. But I get the following error message:
使用 Xcode 9.1,在构建 iOS 应用程序后,我尝试将其存档。但我收到以下错误消息:
Provisioning profile "MyAppProfile" doesn't include signing certificate "iPhone Developer: My Name (X1YZ2AB3CD)".
配置文件“MyAppProfile”不包括签名证书“iPhone Developer: My Name (X1YZ2AB3CD)”。
What is the simplest way to solve this?
解决这个问题的最简单方法是什么?
回答by jegadeesh
Try enabling automatic signing. It will take care these things mostly. The reason for this error is you may have chosen a developer certificate(which the provisioning profile doesn't intended to use with) for distributing/release build.
尝试启用自动签名。它将主要照顾这些事情。出现此错误的原因是您可能选择了用于分发/发布构建的开发人员证书(供应配置文件不打算使用该证书)。
回答by Neeraj Sonaro
Open key chain in your mac and check your development certificate...I think your certificate is expired using which you have created your Provisioning profile..thats why it is showing "MyAppProfile" doesn't include signing certificate.
在您的 mac 中打开钥匙串并检查您的开发证书...我认为您的证书已过期,您使用该证书创建了您的配置文件..这就是为什么它显示“MyAppProfile”不包括签名证书。
1.To solve this issue go to your developer account and download the latest development certificate and add it to keychain and remove all expired certificates from keychain.
1.要解决此问题,请转到您的开发者帐户并下载最新的开发证书并将其添加到钥匙串并从钥匙串中删除所有过期证书。
Or
2.This issue also comes when you have multiple developer accounts in your keychain and the expired developer certificate name is same as that of active developer certificate.
2.当您的钥匙串中有多个开发者帐户并且过期的开发者证书名称与有效开发者证书的名称相同时,也会出现此问题。
回答by AmirZ
I have just encountered the same problem. What fixed it for me is to go to the xcodeproj file>Select the correct build target>Build settings>Code signing identity>select the correct identity for the build configuration (If you didn't change it in the edit scheme screen, it would be "Release" for archiving).
我刚刚遇到了同样的问题。为我修复的是转到 xcodeproj 文件>选择正确的构建目标>构建设置>代码签名身份>为构建配置选择正确的身份(如果您没有在编辑方案屏幕中更改它,它会为“发布”以进行存档)。