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

23.8k Views Asked by At

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 screenshot

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.

9

There are 9 best solutions below

5
travis On BEST ANSWER

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

1
Linc On

Remove DerivedData of your project and clean your project, then, reopen your Xcode.

2
Peter B. Kramer On

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

0
akisoft On

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.

0
Saravanan S On

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

0
Chen Lim On

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

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

0
Kishore Kumar On

enter image description here

Select your icloud container issue will be solved .

0
renemadsen On

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. enter image description here

1
randomcontrol On

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.