如何在Xcode中安装证书(准备应用商店提交)

发布于 2024-10-02 01:51:43 字数 504 浏览 0 评论 0 原文

我不想在目标的构建选项卡中的代码签名身份中选择我的分发配置文件。但我的所有证书(开发人员证书、临时证书……)都呈灰色。所以看来新的配置文件 XXX.mobileprovision 没有安装。指南说

下载分发配置文件并将其安装在 Xcode Organizer 中。 将 .mobileprovision 文件拖到管理器中 IPHONE DEVELOPMENT 下的“配置配置文件”列表中。

但什么也没发生。没有出现绿色加号图标。

如果我双击配置文件,Xcode 会显示一个空文件...

有人可以帮助我吗?

附加信息:

首先,我创建了一个临时配置文件(带有另一个捆绑包标识符),它可以工作(现在)。证书所有者和Mac上的用户名不相同(但私钥是在该用户名下创建的)。在 Xcode 中,我只能看到旧的开发人员证书(来自 Ad-Hoc 配置文件)。

我将应用程序设置为发布

I wan't to select my distribution profile in Code Signing Identity in the build tab of targets. But all my certificates (developer, ad hoc, ...) are grayed out. So it seems that the new profile XXX.mobileprovision is not installed. The guidelines say

Download the distribution profile and install it in the Xcode Organizer.
Drag the .mobileprovision file to the Provisioning Profiles list under IPHONE DEVELOPMENT in the Organizer.

But nothing happens. No green plus icon appears.

If I double click the profile Xcode shows me an empty file ...

Can someone help me out?

Additional information:

First I created an Ad-Hoc profile (with another bundle identifier), which works (now). The certificate owner and the user name on the Mac are not the same (but the private key was created under this username). In Xcode I can only see the old developer certificate (from the Ad-Hoc profile).

I set the app to Release.

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

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

发布评论

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

评论(4

一江春梦 2024-10-09 01:51:43

在 Xcode 5 中,它已移至:

Xcode>首选项>帐户>查看详细信息按钮>

In Xcode 5 this has been moved to:

Xcode>Preferences>Accounts>View Details button>

神经暖 2024-10-09 01:51:43

您可以在 XCode 中更新您的配置证书:

Organizer -> Devices -> LIBRARY -> Provisioning Profiles

有一个刷新按钮 :) 因此,如果您在 iTunes connect 中手动创建了证书,那么您需要按此按钮或手动下载证书。

You can update your provisioning certificates in XCode at:

Organizer -> Devices -> LIBRARY -> Provisioning Profiles

There is a refresh button :) So if you have created the certificate manually in iTunes connect, then you need to press this button or download the certificate manually.

彼岸花ソ最美的依靠 2024-10-09 01:51:43

这些说明适用于 XCode 6.4(因为我什至找不到最新版本的更新 有点过时了)

a) 开发者网站上的部分:

登录:https://developer.apple.com/

会员中心

证书、标识符和信息配置

文件证书>全部

单击“+”添加,然后按照说明进行操作。您需要打开“Keychain Access.app”,位于“Keychain Access”菜单下 > “证书助手>”,选择“从证书颁发机构请求证书”等。

b) XCode 部分:

毕竟,你需要进入 XCode,然后打开 XCode>Preferences...,选择您的 Apple ID >查看详情...>>单击该圆形箭头进行更新,并单击“+”检查 iOS 发行版或 iOS 开发人员签名身份。

These instructions are for XCode 6.4 (since I couldn't find the update for the recent versions even this was a bit outdated)

a) Part on the developers' website:

Sign in into: https://developer.apple.com/

Member Center

Certificates, Identifiers & Profiles

Certificates>All

Click "+" to add, and then follow the instructions. You will need to open "Keychain Access.app", there under "Keychain Access" menu > "Certificate Assistant>", choose "Request a Certificate From a Certificate Authority" etc.

b) XCode part:

After all, you need to go to XCode, and open XCode>Preferences..., choose your Apple ID > View Details... > click that rounded arrow to update as well as "+" to check for iOS Distribution or iOS Developer Signing Identities.

冷︶言冷语的世界 2024-10-09 01:51:43

在下面

配置->分布->分发配置文件

我再次下载了所需的证书并安装了它。现在我在 Xcode 中看不到空文件。构建现在也可以运行(没有代码签名错误)。

我还做了什么:我下载了 WWDR 并安装了它,但我不知道这是否是原因(因为我认为它总是相同的)

Under

Provisioning -> Distribution -> Distribution Provisioning Profiles

I downloaded the desired certificate again and installed it. Now I don't see an empty file in Xcode. The build also works now (no code sign error).

What I also did: I downloaded the WWDR and installed it, but I don't know if that was the reason (because I think it's always the same)

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