14

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.

shim
  • 9,289
  • 12
  • 69
  • 108
Theodore.K
  • 384
  • 2
  • 7
  • 21

9 Answers9

13

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

Peter B. Kramer
  • 16,385
  • 1
  • 16
  • 20
3

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

travis
  • 146
  • 12
  • 1
    i am using the developer profile but still i am facing this issue any idea – Mohan Gopi May 12 '17 at 12:31
  • I am using Ionic and removed and added the platform for iOS. That usually solves the issues but not this time. – Xerri May 13 '17 at 05:26
  • I am trying to test push notifications and the the test app will not build without an APNS certificate. Situation developing... – Xerri May 13 '17 at 12:23
  • I had a look at https://firebase.google.com/docs/cloud-messaging/ios/client and i'm trying to use FCM. The build is probably failing because I do not have and APNs certificate yet. – Xerri May 14 '17 at 07:11
  • 5
    Same here, push notifications were needed, but not enabled in "capabilities" of the project. That solved it for me. – Markus Jul 03 '17 at 13:46
2

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

shim
  • 9,289
  • 12
  • 69
  • 108
Linc
  • 1,279
  • 12
  • 16
1

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

Saravanan S
  • 123
  • 1
  • 13
1

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

renemadsen
  • 161
  • 1
  • 9
1

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.

randomcontrol
  • 1,996
  • 1
  • 15
  • 11
0

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.

JonathanDavidArndt
  • 2,518
  • 13
  • 37
  • 49
akisoft
  • 503
  • 6
  • 12
0

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

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

Chen Lim
  • 738
  • 7
  • 10
0

enter image description here

Select your icloud container issue will be solved .

Kishore Kumar
  • 4,265
  • 3
  • 26
  • 47