我不想在目标的构建选项卡中的代码签名身份
中选择我的分发配置文件。但我的所有证书(开发人员证书、临时证书……)都呈灰色。所以看来新的配置文件 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
.
发布评论
评论(4)
在 Xcode 5 中,它已移至:
In Xcode 5 this has been moved to:
您可以在 XCode 中更新您的配置证书:
有一个刷新按钮 :) 因此,如果您在 iTunes connect 中手动创建了证书,那么您需要按此按钮或手动下载证书。
You can update your provisioning certificates in XCode at:
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.
这些说明适用于 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.
在下面
我再次下载了所需的证书并安装了它。现在我在 Xcode 中看不到空文件。构建现在也可以运行(没有代码签名错误)。
我还做了什么:我下载了 WWDR 并安装了它,但我不知道这是否是原因(因为我认为它总是相同的)
Under
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)