配置文件不包括签名证书(Xcode 9.3)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49643253/
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
Provisioning profile doesn't include signing certificate (Xcode 9.3)
提问by Lim Thye Chean
After upgrading to macOS 10.13.4 and Xcode 9.3, my project now makes all my Provisioning Profile ineligible! They worked before upgrade.
升级到 macOS 10.13.4 和 Xcode 9.3 后,我的项目现在使我的所有配置文件都不符合条件!他们在升级之前工作。
The error message for the distribution profile is:
分发配置文件的错误消息是:
Provisioning profile "distribution profile name" doesn't include signing certificate "development certificate name"
供应配置文件“分发配置文件名称”不包括签名证书“开发证书名称”
So I search through the forum,
于是我在论坛里搜索,
- remove ALL items in keychain My Certificate
- redownload the distribution profile (double tap to install to Xcode)
- create new distribution profile (double tap to install to Xcode)
- recreate the Production certificate (double tap to install to Keychain)
- redownload the Development certificate (double tap to install to Keychain)
- 删除钥匙串中的所有项目我的证书
- 重新下载分发配置文件(双击安装到 Xcode)
- 创建新的分发配置文件(双击安装到 Xcode)
- 重新创建生产证书(双击以安装到钥匙串)
- 重新下载开发证书(双击安装到钥匙串)
So now my keychain has two production certificate (one is newly created), and one development certificate, and the error is still there. I found it weird that it asked for the development certificate in distribution profile? (I think this is a clue but I don't know why and what to do.)
所以现在我的钥匙串有两个生产证书(一个是新创建的),一个开发证书,错误仍然存在。我发现它在分发配置文件中要求开发证书很奇怪?(我认为这是一个线索,但我不知道为什么以及该怎么做。)
So now what should I do? Please help!
那么现在我该怎么办?请帮忙!
回答by David Ding
I got two options for you:
我给你两个选择:
1) open KeyChain and find the signing certificate that shown in the error message then delete it.
1) 打开 KeyChain 并找到错误消息中显示的签名证书,然后将其删除。
2) you specified the signing certificate in the Build Setting->Signing, so go to the Build Setting->Signing and click the Code Signing Identity. Do not select Automatic (iOS Developer or iOS Distribution), select the one of the signing certificates in the Identities in Keychain which is valid and have associated with the Provisioning Profile.
2)你在Build Setting->Signing中指定了签名证书,所以进入Build Setting->Signing并点击Code Signing Identity。不要选择自动(iOS 开发人员或 iOS 分发),在钥匙串中的身份中选择有效且与配置文件相关联的签名证书之一。
回答by Lim Thye Chean
I temporary solved the issue by going into Build Settings, and manually set Code Signing Identity (the old way). "Automatically manage signing" no longer work properly, but at least it work.
我通过进入构建设置临时解决了这个问题,并手动设置代码签名标识(旧方式)。“自动管理签名”不再正常工作,但至少可以工作。
回答by Abhishek
回答by Andreas Braun
"Automatically manage signing" is not working on Xcode 9.3. Code signing identify should be selected manually in Build Settings.
“自动管理签名”不适用于 Xcode 9.3。应在构建设置中手动选择代码签名标识。
It is right.You can select Code Signing Identityas iOS developerfor developmentand iOS distributionfor productionin Signingof build settings.
这是正确的。您可以在Signingof build settings 中选择Code Signing Identity作为用于开发的iOS 开发人员和用于生产的iOS 分发。
回答by stevex
In my case, the Provisioning Profile on developer.apple.com listed two developer certificates. One was selected, and one was not. Changed it so both were selected, saved that, installed the updated profile and that fixed it.
就我而言,developer.apple.com 上的 Provisioning Profile 列出了两个开发者证书。一个被选中了,一个没有被选中。更改了它,以便选择,保存,安装更新的配置文件并修复它。
回答by Andreas Braun
"Automatically manage signing" is not working on Xcode 9.3. Code signing identify should be selected manually in Build Settings.
“自动管理签名”不适用于 Xcode 9.3。应在构建设置中手动选择代码签名标识。
回答by Ruuhkis
I had to juggle a bit more too. I deleted my keychain, enabled and disabled autosigning before recreating my certificates.
我也不得不多玩一点。在重新创建我的证书之前,我删除了我的钥匙串,启用和禁用了自动签名。
Then I toggled the certificates in Build Settings section and finally I was able to select the correct certificates in general section.
然后我在构建设置部分切换了证书,最后我能够在常规部分选择正确的证书。
Really missing the simplicity of signing for Android.. :P
真的缺少为 Android 签名的简单性.. :P
回答by Sara Inés Calderón
In my case I had multiple profiles and various certs. I had to go to Apple developer and edit the profile from the error, and add every cert to it, and then it worked.
就我而言,我有多个配置文件和各种证书。我不得不去 Apple 开发人员那里并从错误中编辑配置文件,然后将每个证书添加到其中,然后它就可以工作了。