xcode 无法从钥匙串导出身份

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

Could not export identity from the keychain

iosxcodecode-signingkeychainprovisioning-profile

提问by Miroslav Ku?ák

While exporting Code signing identity from Xcode 5, Preferences->Accounts I get the error upon saving "Could not export identity from the keychain".

从 Xcode 5 导出代码签名身份时,首选项-> 帐户在保存时出现错误“无法从钥匙串导出身份”。

What can it be?

它可以是什么?

Edit:

编辑:

The login.keychain is unlocked. The account of the profile I want to export is connected and also present in login.keychain.

login.keychain 已解锁。我要导出的配置文件的帐户已连接并且也存在于 login.keychain 中。

Console.app output:

Console.app 输出:

31/05/14 15:23:06,879 Xcode[489]: Error, Could not export identity from the keychain: The user name or passphrase you entered is not correct.

回答by Miroslav Ku?ák

The solution is to lock the login keychain, so you can actually be prompted for the keychain password and then export it. If it's unlocked I just keep getting the error despite the password shall be correct - the keychain is unlocked, right?

解决方法是锁定登录钥匙串,这样实际上可以提示您输入钥匙串密码,然后将其导出。如果它已解锁,尽管密码正确,我仍然会收到错误消息 - 钥匙串已解锁,对吗?

So lock and export.

所以锁定并导出。

回答by prad

Xcode needs permission from the login keychain to export the identities. Are you sure you are providing the correct password for login keychain?

Xcode 需要登录钥匙串的许可才能导出身份。您确定为登录钥匙串提供了正确的密码吗?

I tried to replicate this issue and got the error by entering the wrong password for login keychain.

我试图复制这个问题并通过输入错误的登录钥匙串密码得到错误。

To double check, go to keychain access from your machine and try to unlock the login keychain.

要仔细检查,请从您的机器转到钥匙串访问并尝试解锁登录钥匙串。

If you have already unlocked the keychain, Xcode won't prompt you for the password. Then you will just have to enter the password for the exported identities.

如果您已经解锁了钥匙串,Xcode 不会提示您输入密码。然后,您只需输入导出身份的密码。