xcode 提交到 App Store 时找不到与 WatchKit 扩展匹配的配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29544427/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:56:29  来源:igfitidea点击:

No matching provisioning profiles found for WatchKit extension when submitting to App Store

iosxcodeprovisioning-profilewatchkit

提问by Keoros

I'm using xcode 6.3

我正在使用 xcode 6.3

xcode had created a provisioning profile "xxx.xxx.xxx.watchkitextension" automatically, in the code signing of watchkit extension target, I've tried choosing this profile or leaving it Automatic, they all giving me this error "Failed to locate or generate matching signing assets" when I submit it to App Store.

xcode 自动创建了一个配置文件“xxx.xxx.xxx.watchkitextension”,在 watchkit 扩展目标的代码签名中,我尝试选择此配置文件或将其保留为自动,他们都给我这个错误“无法定位或生成匹配签名资产”,当我将其提交到 App Store 时。

enter image description here

在此处输入图片说明

Any ideas? thanks.

有任何想法吗?谢谢。

回答by Alex D

This problem looks similar to this question. Submit WatchKit Provisioning Error

这个问题看起来类似于这个问题。 提交 WatchKit 配置错误

I had the same problem. Here is the solution that worked for me.

我有同样的问题。这是对我有用的解决方案。

Technical Q&A QA1830 The beta-reports-active Entitlement Q: How do I resolve the "beta-reports-active" code signing error? https://developer.apple.com/library/ios/qa/qa1830/_index.html

技术问答 QA1830 Beta-reports-active 权利 问:如何解决“beta-reports-active”代码签名错误?https://developer.apple.com/library/ios/qa/qa1830/_index.html

I had to regenerate the "Distribution" Provisioning Profile that I was using to submit my entire app, before I included the WatchKit extension. Specifically, these steps fixed my problem:

在我包含 WatchKit 扩展之前,我必须重新生成我用来提交整个应用程序的“分发”配置文件。具体来说,这些步骤解决了我的问题:

I logged onto developer.apple.com, selected "Certificates, Identifiers & Profiles".

我登录到 developer.apple.com,选择了“证书、标识符和配置文件”。

  1. On the Certs IDs & Profiles website > Provisioning Profiles page, click the App Store profile.
  2. Click 'Edit'
  3. Click 'Generate'
  1. 在证书 ID 和配置文件网站 > 配置配置文件页面上,单击 App Store 配置文件。
  2. 点击“编辑”
  3. 点击“生成”

回答by Paradise

Following steps help me out: 1.Make sure "App Groups" in Capabilities page in Container target and Extension target.

以下步骤可以帮助我: 1. 确保容器目标和扩展目标的功能页面中的“应用程序组”。

2.Goto Xcode > Preferences > Accounts > YOUR_ACCOUNT > View Details ..., CTRL+Click one of the Profiles and open in Finder. Move all Profiles to Trash.

2.转到 Xcode > Preferences > Accounts > YOUR_ACCOUNT > View Details ...,CTRL+单击其中一个配置文件并在 Finder 中打开。将所有配置文件移至废纸篓。

3.Open "App Groups" in Container target and Extension target. Xcode will generate two profiles for you, just like iOSTeam Provisioning Profile: YOURAPPID and iOSTeam Provisioning Profile: YOURAPPID.watchkitextension. (Make sure your container target and WatchKit App target choose the first one as PP,and your extension target choose the second one).

3.在容器目标和扩展目标中打开“应用程序组”。Xcode 会为你生成两个配置文件,就像 iOSTeam Provisioning Profile: YOURAPPID 和 iOSTeam Provisioning Profile: YOURAPPID.watchkitextension 一样。(确保你的容器目标和 WatchKit App 目标选择第一个作为 PP,你的扩展目标选择第二个)。

4.If everything goes well, you can do whatever build, run and submit.

4.如果一切顺利,你可以做任何构建、运行和提交。

回答by Wizard of Kneup

I needed to revoke my certificates (preferences -> accounts). After that XCode offered to recreate them. All fine now. Not sure whether this has unwanted side effects as previous certificates are now invalid.

我需要撤销我的证书(首选项 - > 帐户)。之后 XCode 提出重新创建它们。现在一切都好。不确定这是否有不需要的副作用,因为以前的证书现在无效。

回答by harry

I had the same error message trying to submit an update to a Watch App that was previously rejected. Since i had previously uploaded, I did not see this error. I used a support incident to get help after exhausting all paths.

我在尝试向之前被拒绝的 Watch 应用程序提交更新时收到了相同的错误消息。因为我之前上传过,所以我没有看到这个错误。在用尽所有路径后,我使用了一个支持事件来获得帮助。

I got a response in just 1 or 2 business days -- which at first annoyed me. They said i needed to reset everything to use "team provisioning profiles" and all would be fine. I am an individual developer, so my "team profile" is just mine... but I did walk through all the steps and ta-da, much to my surprise, everything worked and the errors went away. Nothing really to do with any of the application specific or other provisioning profiles i had -- i must have changed a "signing identity" somewhere so Xcode's automatic resolution / fix up did not work.

我只在 1 到 2 个工作日内就收到了回复——起初这让我很恼火。他们说我需要重置所有内容以使用“团队配置文件”,一切都会好起来的。我是个人开发人员,所以我的“团队资料”只是我的……但我确实完成了所有步骤和 ta-da,令我惊讶的是,一切正常,错误消失了。与我拥有的任何特定于应用程序或其他配置文件无关——我必须在某处更改了“签名身份”,因此 Xcode 的自动解析/修复不起作用。

Apple's message was: CONVERTING TO TEAM BASED CODE SIGNING

Apple 的信息是:转换为基于团队的代码签名

Team-based signing should be used in Xcode 5 and later: it's the recommended workflow and is what's covered in App Distribution Guide. Team based code signing requires resetting of all code signing settings in each targets build settings to their defaults. Xcode will no longer use the Code Signing Identity and Provisioning Profile build settings, but instead choose the best combination of signing identities and provisioning profile for the scheme being built.

基于团队的签名应该在 Xcode 5 及更高版本中使用:这是推荐的工作流程,也是应用分发指南中涵盖的内容。基于团队的代码签名需要将每个目标构建设置中的所有代码签名设置重置为其默认值。Xcode 将不再使用 Code Signing Identity 和 Provisioning Profile 构建设置,而是为正在构建的方案选择签名身份和配置文件的最佳组合。

Technical Q&A QA1814 - Setting up Xcode to automatically manage your provisioning profiles

技术问答 QA1814 - 设置 Xcode 以自动管理您的配置文件

Which is quite clear and solved all my problems.

这很清楚,解决了我所有的问题。