Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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.

like image 388
Theodore.K Avatar asked Feb 10 '17 22:02

Theodore.K


People also ask

How do you add code signing entitlements?

Select the Target and open the Build settings inspector. In the 'Code Signing Entitlements' build setting, type in the filename of the new Entitlements. plist file including the extension. There is no need to specify a path unless you have put the Entitlements.

What is allowProvisioningUpdates?

Since Xcode 9, Apple provides automatic code signing identity management from the command line by using the xcodebuild command. Using the “allowprovisioningupdates” flag, you can enable code signing; however you may get errors like: Your session has expired.


2 Answers

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

like image 85
Peter B. Kramer Avatar answered Oct 14 '22 12:10

Peter B. Kramer


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

like image 38
travis Avatar answered Oct 14 '22 13:10

travis