Xcode 不断生成开发者证书(无密钥)?

发布于 2024-12-27 23:25:20 字数 183 浏览 0 评论 0原文

我正在尝试从头开始删除所有用于 iOS 开发的密钥,重新创建它们,然后下载并安装新密钥。

问题是我不断删除 iPhone Developer: MyName 证书(没有与之关联的私钥),但是当我运行 Xcode 时,它​​会生成一个新证书。

有没有更好的方法从头开始使用所有这些证书和配置文件?

I'm trying to start from scratch with all my keys for iOS development by deleting them, recreating them, and downloading and installing the new ones.

The problem is that I keep deleting the iPhone Developer: MyName certificate (no private key associated with it), but when I run Xcode, it generates a new one.

Is there a better way to start from scratch with all these certificates and profiles?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鸩远一方 2025-01-03 23:25:20

我也有同样的问题。我认为,如果 Xcode 在您的 iPhone 上或在您的管理器中的应用程序的任何 mobileprovision 文件中找到旧证书,那么它会重新导入它们。

尝试从 Xcode 和 iPhone 中删除所有配置文件。最终,如果您删除对证书的所有引用,它将停止恢复它们。

I had the same problem. I think if Xcode finds the old certificates on your iPhone or in any of the mobileprovision files for the apps in your organiser then it re-imports them.

try deleting all the provisioning profiles from xcode and from your iPhone. Eventually if you delete all references to the certificates it will stop restoring them.

欢你一世 2025-01-03 23:25:20

XCode 默认会生成一个,正如您在开发者门户中看到的那样,它无法编辑,并显示“由 XCode 管理”,如果您希望进行测试,则可以使用它,然后只需选择您希望在您的应用程序中使用的那个即可。目标代码签名设置。

从头开始:

1) Delete and create a new certificate
2) Create a new profile with this certificate

XCode will generate one by default, that as you may see in the developer portal cannot be edited and says "Managed by XCode", you can use that one if you wish for testing, and then simply select the one you wish to use in your target code signing settings.

To start from scratch:

1) Delete and create a new certificate
2) Create a new profile with this certificate
站稳脚跟 2025-01-03 23:25:20

我想我最近也遇到了同样的问题。当您删除它时,您可能位于钥匙串访问工具的“所有项目”类别中。这意味着私钥不会被显示/删除。您应该尝试从证书视图中删除它。我这样做之后,它就再也没有出现过。 :-)。

编辑:似乎是一个常见问题;-)

I think I had the same problem recently. When you delete it you probably are in the Category 'All Items' in the Keychain Access tool. This means the the private key doesn't get shown/deleted. You should try deleting it from the certificates view. After I did that it never reappeared. :-).

edit: Seems to be a common problem ;-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文