iPhone 分布:当前没有匹配的配置文件

发布于 2024-09-17 05:14:30 字数 753 浏览 14 评论 0原文

我即将将应用程序上传到 iTunes Connect。我不是团队代理,团队代理似乎也不能让我成为团队代理。于是他登录会员中心并下载了分发证书,该证书与 WWDR 证书一起位于我的钥匙串中。

捆绑包标识符设置为 se.“companyname”.“appname”。

当我将代码签名身份设置为分发时,它表示没有配置文件匹配。只有团队代理才能构建最终的应用程序以供上传吗?如何让 XCode“使用正确的配置文件集”?

关于如何克服最后一个障碍有什么想法吗? :)

编辑:团队代理可以登录会员中心并为应用程序创建配置文件吗?这能解决所有问题吗?

回答:请参阅 Paul Peeleen 的回答,我决定添加此附加信息(太长,无法发表评论)。

保罗,我将把你的答案标记为正确的答案,因为它让我走上了正确的轨道...证书用于钥匙串(通常链接到计算机,或者更确切地说,我猜是计算机用户的登录名) 。

必须为应用程序创建一个完全独立的分发配置文件 - 修改现有的开发证书以包含团队代理,仅允许他进行开发。有点“啊哈”或“哦”的时刻是,它必须在“配置”部分中创建,并选择“分发”选项卡(在配置门户中)。

之后,在“目标信息/构建”选项卡中,您只需使用默认的自动配置文件选择器(开发/发行版)即可自动找到它。

我还暂时尝试在捆绑标识符的 se.companyname.appname 之前添加“乱码”(例如 JX567ERNB。),但自动配置文件选择器告诉我它不应该在那里,我删除了它并且它起作用了!

我猜想,这些配置文件使项目能够使用钥匙串中的证书。

I am about to upload an app to iTunes Connect. I am not Team Agent, nor does it seem the Team Agent can make me a Team Agent. So he logged onto Member Center and downloaded a Distribution Certificate, which is in my Keychain along with the WWDR Certificate.

The bundle identifier is set to se."companyname"."appname".

When I set the Code signing identity to Distribution, it says no profiles match. Can only the Team Agent build the final apps for upload? How do I make XCode "use the right set of profiles"?

Any idea on how to get past this last hurdle? :)

Edit: can the Team Agent log onto Member Center and create a provisioning profile for the app, will that solve everything?

Answer: See Paul Peeleen's answer, I decided to add this additional information (too long for comment).

Paul, I'm going to mark yours as the correct answer, because it set me on the correct track... certificates are for the keychain (which is usually linked to a computer, or rather, a computer user's login, I guess).

A quite separate distribution profile must be created for the app - modifying an existing Development certificate to include the Team Agent only lets him develop. The little 'a-ha' or perhaps 'd'oh' moment was that it has to be created in the Provision section with Distribution tab selected (in the provisioning portal).

After that, in the Target Info/Build tab you just use the default automatic profile selector (dev/distro) and it's found automatically.

I also temporarily tried adding the 'gibberish' (f.ex. JX567ERNB.) before the se.companyname.appname for the Bundle Identifier, but the automatic profile selector told me that it shouldn't be there, I removed it and it worked!

The profiles are what enable the projects to use certificates in the Keychain, I guess.

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

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

发布评论

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

评论(5

她如夕阳 2024-09-24 05:14:30

“iPhone 发行版没有配置文件匹配”是我在应用程序开发中遇到的最烦人的问题之一。

我是这样解决的:

在 iOS Provisioning Portal 下的 Developer 中,我需要生成 4 个证书并下载 WWDR 中间证书,以便能够将我的应用程序提交到 App Store:

  1. 在 Developer Certificate 部分(link) 生成开发者证书。另请确保您已安装 WWDR 中间证书,如果有疑问,请从那里下载。
  2. 在开发者证书部分(链接)下生成分发证书(此不是会显示在 Xcode 中!)
  3. 在“配置”部分下(链接 ) 生成开发配置文件证书
  4. 在“配置”部分(链接)下生成一个分发配置文件。这将作为分发证书显示在 Xcode 中!

之后,我能够选择在 4 处生成的 iPhone 分发配置文件。还要确保您的目标设置正确,因为它们会覆盖项目设置。

您的活动配置文件列在“Xcode/Organizer/Library/Provisioning Profiles”下,

我希望它有帮助

更新:一些发行版配置文件通常只是从我的列表中“消失”。因此,我必须从 https:// 再次下载并安装(只需双击)它们developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action 没什么大不了的,但很烦人。

"iPhone distribution no profiles match" is one of the most annoying issue that I have ever had with app development.

This is how I sorted it out:

In Developer under iOS Provisioning Portal I needed to generate 4 certificates and download the WWDR intermediate certificate to be able to submit my app to the App Store:

  1. Under Developer Certificate section (link) generate a Developer Certificate. Also Make sure that you have the WWDR intermediate certificate installed, if in doubt download it from there.
  2. Under Developer Certificate section (link) generate a Distribution Certificate (This is not that will show up in Xcode!)
  3. Under Provisioning section (link) generate a Development Provisioning profile certificate
  4. Under Provisioning section (link) generate a Distribution Provisioning profile. THIS WILL SHOW UP IN XCODE AS A DISTRIBUTION CERTIFICATE!

After that I was able to select the iPhone distribution profile generated at 4. Also make sure that your target settings are correct as they overwrite the project settings.

Your active provisioning profiles are listed under "Xcode/Organizer/Library/Provisioning Profiles"

I hope it helps

UPDATE: Some distribution provisioning profiles often just "disappear" from my list. So I have to download and install (just double click) them again from https://developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action not a big deal, but annoying.

烟火散人牵绊 2024-09-24 05:14:30

我用我的帐户检查了这一点,似乎只有团队代理才能创建 AppStore 或 AdHoc 版本所需的内容。

如果您安装了正确的配置文件,并且“发布”版本的项目设置和目标设置都设置为正确的配置文件。 + 您已为该计算机安装了正确的证书...您可以构建版本。
我不确定是否只有团队代理可以上传这些版本,但否则您可以将版本打包为 zip 文件(无论如何您都应该这样做)并将其发送给团队代理。然后,团队代理可以使用应用程序加载器上传应用程序。

I checked this with my accounts and it seems that only the team agent can create the stuff needed for AppStore or AdHoc releases.

IF you have the correct provisioning profile installed, and both your project settings and target setting for the "release" build are set to the correct provisioning profile. + that you have the correct certificates installed for that computer... you can build the release.
I am unsure if only the Team Agent can upload these build, but otherwise you can package the release as a zip file (which you should anyways) and send it off the the team agent. The Team agent can then use the Application Loader to upload the application.

溺孤伤于心 2024-09-24 05:14:30

另外不要忘记,如果您删除了钥匙串中的所有证书和密钥,并且计划重新生成这些证书,请确保将钥匙串中的证书首选项将在线证书状态协议更改为关闭,将证书吊销列表更改为关闭,出于某种原因,此重要步骤是这是对我有用的唯一方法。

缺少开发人员配置文件的另一个原因是

在“库”下的组织者中 :配置配置文件...
在我的计算机上,如果我点击“刷新”,所有分发配置文件都会被删除!
没什么大不了的,只需返回您的配置门户并转到“配置”>“分发并下载适当的分发配置文件,然后您就可以开始了! :)

来自苹果的说明...完全遵循它们
https://developer.apple.com/ios/manage/certificates/团队/howto.action

要申请iOS开发证书,您首先需要生成
使用钥匙串访问的证书签名请求 (CSR)
Mac OS X Leopard 中的应用程序。创建 CSR 时会提示
钥匙串访问可同时生成您的公钥和私钥
配对建立您的 iOS 开发者身份。您的私钥是
默认保存在登录Keychain中,可以在
“钥匙”类别下的钥匙串访问应用程序。生成一个
企业社会责任:

在“应用程序”文件夹中,打开“实用程序”文件夹并启动
钥匙串访问。在首选项菜单中,设置在线证书
状态协议 (OSCP) 和证书吊销列表 (CRL) 为“关闭”。

选择钥匙串访问 ->证书助理->请求一个
来自证书颁发机构的证书。注意:如果您有
在此期间,钥匙串中突出显示了不合规的私钥
过程中,生成的证书请求将不会被接受
配置门户。确认您选择“请求
来自证书颁发机构的证书...”并且不选择
“向证书颁发机构请求证书......”

在“用户电子邮件地址”字段中,输入您的电子邮件地址。请
确保输入的电子邮件地址与所输入的信息相符
当您注册为 iOS 开发者时提交。在通用名称中
字段输入您的姓名。请确保输入的姓名与
您注册 iOS 时提交的信息
开发商。不需要 CA(证书颁发机构)电子邮件地址。
完成以下操作后,“必填”消息将被删除
步。选择“保存到磁盘”单选按钮,如果出现提示,请选择
“让我指定密钥对信息”,然后单击“继续”。

如果选择“让我指定密钥对”,请指定文件名并
单击“保存”。在接下来的屏幕中,选择“2048 位”作为密钥
算法的大小和“RSA”。点击“继续”。

证书助手将在您的桌面上创建一个 CSR 文件。

Also dont forget If you deleted all your certificates and keys in Keychain and you plan on regenerating those certificates make sure you change your certificate preferences in Keychain for Online Certificate Status Protocol to Off and Certificate Revocation List to Off, for some resaon this important step is the only way it worked for me.

Another reason developer profiles are missing

While in organizer under Library > Provisioning Profiles...
On my computer, if I hit Refresh, all the Distribution profiles are removed!!!
No big deal, just go back to your provisioning portal and go to Provisioning > Distribution and download the appropriate distribution profiles and your good to go! :)

Instructions right from apple... Follow them EXACT
https://developer.apple.com/ios/manage/certificates/team/howto.action

To request an iOS Development Certificate, you first need to generate
a Certificate Signing Request (CSR) utilizing the Keychain Access
application in Mac OS X Leopard. The creation of a CSR will prompt
Keychain Access to simultaneously generate your public and private key
pair establishing your iOS Developer identity. Your private key is
stored in the login Keychain by default and can be viewed in the
Keychain Access application under the ‘Keys’ category. To generate a
CSR:

In your Applications folder, open the Utilities folder and launch
Keychain Access. In the Preferences menu, set Online Certificate
Status Protocol (OSCP) and Certificate Revocation List (CRL) to “Off”.

Choose Keychain Access -> Certificate Assistant -> Request a
Certificate from a Certificate Authority. Note: If you have a
noncompliant private key highlighted in the Keychain during this
process, the resulting Certificate Request will not be accepted by the
Provisioning Portal. Confirm that you are selecting “Request a
Certificate From a Certificate Authority...” and not selecting
“Request a Certificate From a Certificate Authority with …”

In the User Email Address field, enter your email address. Please
ensure that the email address entered matches the information that was
submitted when you registered as an iOS Developer. In the Common Name
field enter your name. Please ensure that the name entered matches the
information that was submitted when you registered as an iOS
Developer. No CA (Certificate Authority) Email Address is required.
The ‘Required’ message will be removed after completing the following
step. Select the ‘Saved to Disk’ radio button and if prompted, select
‘Let me specify key pair information’ and click ‘Continue’.

If ‘Let me specify key pair’ was selected, specify a file name and
click ‘Save’. In the following screen select ‘2048 bits’ for the Key
Size and ‘RSA’ for the Algorithm. Click ‘Continue’.

The Certificate Assistant will create a CSR file on your desktop.

浸婚纱 2024-09-24 05:14:30

我也整天与这个问题作斗争。尝试了很多事情。

我下载了分发配置文件。确定

双击。进入钥匙串后,它(就像魔术一样)OK

构建。没有。未签名

检查 - 这不是您正在寻找的团队配置证书,它是外观普通且无法安装在设备上的证书。

如果它不存在,您没有将其复制到您的库/MobileDevice/Provisioning Profiles 文件夹。(就像我没有一样)

I battled the problem all day too. Tried Tons of things.

I downloaded the distribution provisioning profile. OK

Double Click. Into Keychain it goes (like magic) OK

Build. NOPE. Not Signed

Check - it is not the Team Provisioning Cert that you are looking for it is the plain looking one that cannot be installed on devices.

If it is not there you did not copy it to YOUR library/MobileDevice/Provisioning Profiles folder. (just like I didn't)

凯凯我们等你回来 2024-09-24 05:14:30

确保配置文件中的捆绑标识符的大小写与 info.plist 中的大小写相同。

我刚刚遇到了这个问题,当我看到 Xcode 甚至不允许我手动选择我的分发配置文件时,最终解决了它,说“配置文件与包标识符 myappname 不匹配”。

当仔细查看时,我看到包名称应用程序名称大写,配置文件的应用程序名称全部小写。

Make sure that the case of your bundle identifier in the provisioning profile and your info.plist are the same.

I just had this problem, and resolved it finally when I saw that Xcode would not even let me manually select my distribution profile, saying 'profile doesn't match bundle identifier myappname'

When a took a close look, I saw that the bundle name had the app name capitalized, and the provisioning profile had the appname in all lowercase.

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