ios Mac OS X 钥匙串访问:“找不到默认钥匙串”错误

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

Mac OS X Keychain Access: "A default keychain could not be found" error

iosmacoskeychain

提问by Pizzur22

I am trying to sign an iPhone app for publishing, so I am following the instructions to do so. Anyhow, when creating my Certificate Signing Request I get this error from Keychain Access: "A default keychain could not be found"

我正在尝试签署 iPhone 应用程序以进行发布,因此我正在按照说明进行操作。无论如何,在创建我的证书签名请求时,我从钥匙串访问中收到此错误:“找不到默认钥匙串”

I found no help on Google concerning this issue - can anybody help?

我在 Google 上没有找到有关此问题的帮助 - 有人可以帮忙吗?

Thanks!

谢谢!

回答by Lily Ballard

Sounds like you're missing your login.keychain. Either that, or you somehow un-set it as default. Look at your Keychains list in Keychain Access (View->Show Keychains). Do you have "login"? And is it bold? If either of those answers was "no", that's your problem. If you don't have a login keychain, go ahead and create one (File->New Keychain). If you don't have a bolded keychain, right-click your "login" keychain and there should be a menu item 'Make Keychain "login" Default'.

听起来您缺少 login.keychain。要么如此,要么您以某种方式取消将其设置为默认值。查看钥匙串访问中的钥匙串列表(查看-> 显示钥匙串)。你有“登录”吗?并且大胆吗?如果其中一个答案是“否”,那就是您的问题。如果您没有登录钥匙串,请继续创建一个(文件-> 新钥匙串)。如果您没有加粗的钥匙串,请右键单击您的“登录”钥匙串,此时应该有一个菜单项“将钥匙串设为“登录”默认值”。

回答by Sohail

Not allowed to create certificate:

不允许创建证书:

Open Keychain and goto Keychain Access -> 'KeyChain First Aid'. Apply check on REPAIR radio button and enter Admin password in password field and click on START button. System will repair the keychain and then create certificate.

打开 Keychain 并转到 Keychain Access -> 'KeyChain First Aid'。应用检查修复单选按钮并在密码字段中输入管理员密码,然后单击开始按钮。系统将修复钥匙串,然后创建证书。

These steps worked for me.

这些步骤对我有用。

回答by Greg Wiley

You need to go into the Lib>Keychains and delete the contents in the folder.

您需要进入 Lib>Keychains 并删除文件夹中的内容。

Delete References. Restart, and you should be a happy camper :)

删除引用。重新开始,你应该是一个快乐的露营者:)