简体   繁体   English

Xcode 无法自动为应用剪辑创建配置文件

[英]Xcode can not create provisioning profile for app clip automatically

I am trying to archive an iOS app with its app clip, but I could not manage to achieve it.我正在尝试使用其应用程序剪辑归档 iOS 应用程序,但我无法实现它。 We have an enterprise developer account and I use Xcode12.0 beta2 (12A6163b).我们有一个企业开发者帐户,我使用 Xcode12.0 beta2 (12A6163b)。

The steps I did were as following:我做的步骤如下:

  • Created a new iOS project创建了一个新的 iOS 项目
  • Added an app clip target添加了应用剪辑目标
  • Added app groups for both app target and app clip target为应用目标和应用剪辑目标添加了应用组
  • Selected automatically manage signing checkbox for both app target and app clip target为应用程序目标和应用程序剪辑目标选择了自动管理签名复选框

For app clip target, I got following error messages:对于应用剪辑目标,我收到以下错误消息:

  • The capability associated with "ON_DEMAND_INSTALL_CAPABLE" could not be determined.无法确定与“ON_DEMAND_INSTALL_CAPABLE”相关的功能。 Please file a bug report at https://feedbackassistant.apple.com and include the Update Signing report from the Report navigator.请在https://feedbackassistant.apple.com提交错误报告,并包含来自报告导航器的更新签名报告。
  • Xcode couldn't find any iOS App Development provisioning profiles matching '[BUNDLE_ID_OF_APP_CLIP]'. Xcode 找不到与“[BUNDLE_ID_OF_APP_CLIP]”匹配的任何 iOS 应用程序开发配置文件。

Here is screenshot of app target capabilities section:这是应用程序目标功能部分的屏幕截图: 应用目标功能部分

Here is screenshot of app clip target capabilities section when I selected Xcode managed signing:这是我选择 Xcode 托管签名时应用剪辑目标功能部分的屏幕截图: 应用剪辑目标功能部分自动签名


After I got those error messages, I tried to do this with manual signing.在收到这些错误消息后,我尝试通过手动签名来做到这一点。 In developer.apple.com I registered a new app-id for app clip target.在 developer.apple.com 中,我为应用剪辑目标注册了一个新的 app-id。 While creating it, I could not find "On demand install capable" capability and enabled these capabilities.在创建它时,我找不到“按需安装”功能并启用了这些功能。

  • App Groups (With enabled app group selected)应用组(选择启用的应用组)
  • Associated Domains关联域
  • Game Center游戏中心
  • In-App Purchase在应用程序内购买

Here is screenshot of app clip target capabilities section when I manually handled signing:这是我手动处理签名时应用剪辑目标功能部分的屏幕截图: 应用剪辑目标功能部分手动标志


According to developer.apple.com ,根据developer.apple.com

Enterprise distribution isn't available to App Clips.企业分发不适用于 App Clips。

So you can't use your Enterprise account, even though you were able to create an AppId.因此,即使您能够创建 AppId,您也无法使用您的企业帐户。

Some steps to try:一些尝试的步骤:

  1. make sure you are using the latest version of Xcode (12b6 as of this writing)确保您使用的是最新版本的 Xcode(撰写本文时为 12b6)
  2. make sure your developer account does NOT have any identifiers for the app clip.确保您的开发者帐户没有应用剪辑的任何标识符。
  3. remove the app clip completely from your targets and re-add it.从您的目标中完全删除应用程序剪辑并重新添加它。
  4. turn Automatic Signing on and choose your team.打开自动签名并选择您的团队。 Xcode will automatically make the identifiers you need for the app clip and add them to your dev account. Xcode 将自动生成应用剪辑所需的标识符并将它们添加到您的开发帐户。

Make sure create clip bundle id xxx.clip in apple developer website.确保在苹果开发者网站上创建剪辑包 id xxx.clip

If there's one created by Xcode, just delete it and create manually on website.如果有 Xcode 创建的,只需删除它并在网站上手动创建。

Then create clip profiles with the xxx.clip bundle id.然后使用xxx.clip包 ID 创建剪辑配置文件。

After that you should work.之后你应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM