iPhone 分布:当前没有匹配的配置文件
我即将将应用程序上传到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
“iPhone 发行版没有配置文件匹配”是我在应用程序开发中遇到的最烦人的问题之一。
我是这样解决的:
在 iOS Provisioning Portal 下的 Developer 中,我需要生成 4 个证书并下载 WWDR 中间证书,以便能够将我的应用程序提交到 App Store:
之后,我能够选择在 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:
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.
我用我的帐户检查了这一点,似乎只有团队代理才能创建 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.
另外不要忘记,如果您删除了钥匙串中的所有证书和密钥,并且计划重新生成这些证书,请确保将钥匙串中的证书首选项将在线证书状态协议更改为关闭,将证书吊销列表更改为关闭,出于某种原因,此重要步骤是这是对我有用的唯一方法。
缺少开发人员配置文件的另一个原因是
在“库”下的组织者中 :配置配置文件...
在我的计算机上,如果我点击“刷新”,所有分发配置文件都会被删除!
没什么大不了的,只需返回您的配置门户并转到“配置”>“分发并下载适当的分发配置文件,然后您就可以开始了! :)
来自苹果的说明...完全遵循它们
https://developer.apple.com/ios/manage/certificates/团队/howto.action
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
我也整天与这个问题作斗争。尝试了很多事情。
我下载了分发配置文件。确定
双击。进入钥匙串后,它(就像魔术一样)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)
确保配置文件中的捆绑标识符的大小写与 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.