xcode - 在 Xcode 中创建的应用程序组未出现在开发者帐户控制台中

标签 xcode certificate

我在 Xcode 中为临时分布式目标创建了一个共享扩展目标。为了在主应用程序和扩展程序之间共享用户默认值,我为两个目标启用了应用程序组功能,添加了一个新的应用程序组。
现在,当我在项目配置 View 中查看共享目标时,看到以下错误:

Provisioning profile "my adHoc profile" doesn't support the App Groups capability.

Provisioning profile "my adHoc profile" doesn't support the App Group.

Provisioning profile "my adHoc profile" doesn't include the my app group groups entitlement.


Screenshot of first errors
这是有道理的;当我查看目标的功能选项卡并展开应用程序组权利时,我的新应用程序组以红色突出显示,并在其下方显示以下错误:

Add the App Groups feature to your App ID

Provisioning profile "my adHoc profile" doesn't support the App Groups capability

Add App Groups to your App ID

Provisioning profile "my adHoc profile" doesn't support the App Groups capability


Screenshot of error 2
但是当我导航到 developer.apple.com -> Account -> Certificates, IDs & Profiles -> Identifiers -> My share extension App ID -> App Groups -> Configure 时,我没有看到我创建的 App Group。
Screenshot of available app groups; mine is missing
如何将我的组添加到开发者控制台,以便我可以选择它作为我的 App ID 的组,以便它在我的配置文件中可用?

最佳答案

找到了!

应用程序组与其他标识符存在于相同的(顶部)层次结构中。所以要添加一个新的,我导航到 developer.apple.com -> Account -> Certificates, IDs & Profiles -> Identifiers ,然后单击加号按钮,然后选择“应用程序组”作为标识符类型。

这是添加新标识符的加号按钮:

Screenshot of identifiers screen with plus button

这是我选择添加应用程序组的地方:

Screenshot of identifier type menu with app group type selected

之后,我只是根据我的需要输入了应用程序组的名称和描述。

关于xcode - 在 Xcode 中创建的应用程序组未出现在开发者帐户控制台中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57186735/

相关文章:

ios - 谷歌自动完成教程 places api for swift

iphone - iOS模拟器认为文档目录是/var/root/Documents

security - 如何检查是否启用了 Authenticated Origin Pulls?

macos - Codesign 说 "no identity found"但是身份在钥匙串(keychain)上

wcf - 开发人员证书与为 WCF 购买的证书

objective-c - if else 语句的预期表达式错误

ios - 如何在xcode中为ios项目创建动态库?

java - 使用基于 Java Key Store 别名的单个证书

ios - App Store证书/ key 对代码签名过程中是否存在 "screw it up permanently"情况?

iphone - 重复 self 执行选择器