Provisioning profile missing entitlement: com.apple.developer.icloud

Hi, I do have a strange behavior in my development environment on a Mac mini (M4) running 26.2 and Xcode 26.3. Everything was working as expected. My project had a stable state and I wanted to enable iCloud support. As result I could not run the app any more because code signing failed with the message that my profile does not include the above entitlement. On my notebook (M2) with XCode 26.3 everything is working.

Im am using GIT and both computers have identical code. The code compiling and running on my notebook will not run any more on my Max mini.

Any help to find what might have broken the code signing and how it could be fixed?

Thanks in advance.

There are multiple technologies under the iCloud banner, and the error your posted only shows the start of the entitlement name (com.apple.developer.icloud-) so it’s hard to know which one you’re shooting for. So, some questions:

  • Do you have automatic code signing enabled? It can generally fix problems like this… automatically.
  • Did you enable this via a capability in the Signing & Capabilities editor?
  • If so, which one?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for your answer.

I want to clarify the situation.

  • i use automatic signing with Signing & Capabilities editor
  • at the moment iCloud is disabled and not used

I have cleaned all derived data - no change. I have reinstalled Xcode - no change. I have delete the project and reloaded it from my git repository - no change.

I have loaded the project on my MacBook. - and it compiles without any problem.

I have no clue what difference between these to systems is.

Quinn is helping this, which is great. I am just curious if the com.apple.developer.icloud- is really com.apple.developer.icloud-container-identifiers. I am guessing that the provisioning profile on your machine, either your notebook or Mac Mini, is not up to date, which leads to the different behaviors. Maybe you can try the following:

  • Be sure your developer account is correctly set up in Xcode Settings > Apple Accounts, and your Mac has the access Apple's developer portal.

  • Uncheck the Automatically manage signing box, and check it back. This tells Xcode to refresh the provisioning profile.

If that doesn't help, try to remove the iCloud capability – You are not using any iCloud feature, and so don't really need the capability just yet.

If you do need the iCloud capability, check one of the services, and pick an iCloud container if the service you checked is iCloud Documents or CloudKit. This is how folks use the capability. If everything goes well, the .entitlements file in your project should have something like below (assuming the CloudKit servicie is used), and the provisioning profile should be Automatically updated:

<key>com.apple.developer.icloud-container-identifiers</key>
<array>
	<string>your.container.identifier</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
	<string>CloudKit</string>
</array>

I am super curious if this helps.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Provisioning profile missing entitlement: com.apple.developer.icloud
 
 
Q