简体   繁体   English

iOS 小部件配置文件问题:如何正确分发 iOS WidgetKit

[英]iOS Widget provision profile issue: how to correct distribute with iOS WidgetKit

How to correct setting up profile stuff for iOS Widget ?如何更正为iOS Widget设置配置文件?

First, I select auto checkbox , but distribute app steps get some error.首先,我 select auto checkbox ,但分发应用程序步骤得到一些错误。 so I try with manual setting to figure out what's going wrong as bellow:所以我尝试使用手动设置来找出问题所在,如下所示:

  • If I not select a profile for iOS Widget target, got error:如果我不是 select 的配置文件iOS Widget目标,得到错误:

xxx Widget Extension required a provision profile with the App Groups feature. xxx Widget Extension需要具有 App Groups 功能的配置文件。 ... ...

  • If I select a profile of iOS Widget target, got error:如果我 select 的配置文件iOS Widget目标,得到错误:

xxx Widget Extension profile is Xcode managed, but signing required a manually managed profile. xxx Widget Extension配置文件由 Xcode 管理,但签名需要手动管理的配置文件。

PS: Xcode Version 12.3 (12C33) PS:Xcode 12.3版(12C33)

Update 11-22 :更新 11-22

Provision Profile is not the issue in this case, I have create a new project with same provision profile & Capability, which I can distribute steps without problem.在这种情况下,配置文件不是问题,我创建了一个具有相同配置文件和功能的新项目,我可以毫无问题地分配步骤。

Group Capability in both Widget Extension & app is setupped.设置了小部件扩展和应用程序中的组功能

Update 11-23 : ************* This Is The Root Cause ***************更新 11-23 : ************* 这是根本原因 ***************

When there's a 3rd pod(QuCore-ThirdParty) included, which can cause distribute step not show Re-sign step.当包含第 3 个 pod(QuCore-ThirdParty)时,可能会导致分发步骤不显示Re-sign步骤。 demo code change 演示代码更改

 pod 'QuCore-ThirdParty', '3.15.0'

Works version of Distribute App: demo code Distribute App 的 Works 版本: 演示代码

  1. Select a method of distribution: [x] App Store Connect Select 一种分发方法:[x] App Store Connect
  2. Select a destination: [x] Upload Select 目的地:[x] 上传
  3. App Store Connection distribution options: [x] upload your app's symbols to receive symbolicated reports from Apple App Store Connection 分发选项:[x] 上传您的应用程序符号以接收来自 Apple 的符号化报告
  4. Re-sign "Runner" : [x] Automatically manage signing Re-sign "Runner" :[x] 自动管理签名

Failed version of Distribute App: demo code Distribute App 的失败版本: 演示代码

  1. Select a method of distribution: [x] App Store Connect Select 一种分发方法:[x] App Store Connect
  2. Select a destination: [x] Upload Select 目的地:[x] 上传
  3. App Store Connection distribution options: [x] Strip Swift symbols [x] upload your app's symbols to receive symbolicated reports from Apple App Store Connection 分发选项:[x] 去除 Swift 符号 [x] 上传您的应用程序符号以接收来自 Apple 的符号化报告
  4. Select certificate and iOS App Store profile : Runner.app: [x] xxx XXXWidgetExtension.appex: [x] xxx Select certificate and iOS App Store profile :Runner.app:[x] xxx XXXWidgetExtension.appex:[x] xxx

在此处输入图像描述

在此处输入图像描述

I found the reason:我找到了原因:

The bundle id for extension need to create manually on apple's developer website. bundle id for extension需要在苹果的开发者网站上create manually

If there's a bundle id for extension created by Xcode , just delete it and manually created one.如果有created by Xcode扩展包 ID,只需将其delete并手动创建一个。

Then create profiles for extension bundle id manully.然后手动profiles for extension bundle id

Then it should ok for distribution step.然后它应该可以用于分发步骤。

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

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