自动签名无法解决目标的授权文件的问题

The*_*e.K 14 icloud xcode8 ios10.2

我正在按照本教程学习如何创建一个在iCloud中保存用户生成数据的应用程序.但是,我遇到了这个问题,我对我需要做的事情感到很困惑.请帮忙

在此输入图像描述

第一个错误说

Automatic signing is unable to resolve an issue with the "iCloudStore" target's entitlements file.
Remove the entitlements or switch to manual signing and resolve the issue by downloading a provisioning profile from the developer website.
Run Code Online (Sandbox Code Playgroud)

第二个说

Provisioning profile "iOS Team Provisioning Profile: com.Kaen.TravisCloudStore" doesn't include the com.apple.developer.icloud-container-identifiers entitlement.
Run Code Online (Sandbox Code Playgroud)

Pet*_*mer 13

我有这个问题.去目标/能力.打开以下"开启" - iCloud,应用程序内购买,后台模式.问题解决了.


tra*_*vis 3

确保您使用的是“开发人员”配置文件,而不是“分发”配置文件。还要确保您的应用程序名称是唯一的。

  • 同样,需要推送通知,但在项目的“功能”中未启用。这为我解决了。 (5认同)