简体   繁体   中英

Automatic signing is unable to resolve an issue with the target's entitlements file

I'm following this tutorial on how to make an app that saves user generated data in iCloud. However, I'm running into this issue, and am so confused about what I need to do. Please help

Xcode 截图

The first error says

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.

and the second one says

Provisioning profile "iOS Team Provisioning Profile: com.Kaen.TravisCloudStore" doesn't include the com.apple.developer.icloud-container-identifiers entitlement.

I had this problem. Went to Target/Capabilities. Turned the following "On" - iCloud, In-App Purchase, Background Modes. Problem solved.

Make sure you're using your "Developer" profile and not your "Distribution" profile. Also make sure your app name is unique.

删除项目的 DerivedData 并清理项目,然后重新打开 Xcode。

When you using Push notification in your iOS app. Ensure push notification is enabled or not in xcode "CAPABILITIES".

For me it worked to go to Build settings and Select All and Combined and remove any values in the Code Signing Entitlements for Debug and Release. 在此处输入图片说明

I had the same error when I tried to use the NSPersistentCloudKitContainer example project from apple (CoreDataCloudKitDemo).

In my case, I also got an error when I opened the CloudKit Dashboard and tried to access the CoreDataCloudKitDemo container.

After deselecting the container and then CloudKit under the iCloud capability of the Xcode project and then reselecting CloudKit and the container again the error disappeared immediately.

I had the same issue. I solved it by going to the Capabilities Tab to enable Remote Notification under the Background Modes. This is because I used Google FCM for my notifications.

Ran into this, and had to delete ~/Library/MobileDevice/Provisioning\\Profiles

via here: Xcode 8.3 / Xcode 9.0 Refresh provisioning profile devices

在此处输入图片说明

Select your icloud container issue will be solved .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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