title: Invalid Code Signing Entitlements for iCloud, Core Data and Xcode 6.01 with iOS 8
body: <p>I have an existing app in the App Store which works very well with iOS 7 and 8. It's an app that uses Core Data to store information added in from the user, as well as iCloud for synching (no key-value storage). </p>
  
  <p>With Xcode 5.1.1, everything works very well. I've just spent some time releasing an urgent timezone fix for my users, so the fix has nothing to do with iCloud and Core Data. Since the release of Xcode 6.0.1 and the iOS 8 SDK, I went forward and started using that. </p>
  
  <p>When it came to validating my app this morning, I received the following error:</p>
  
  <pre><code>Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in a provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.developer.icloud-container-environment' in Payload/AppName.app/AppName'.
  </code></pre>
  
  <p>Within the Developer portal, my App ID has iCloud enabled, but only for Xcode 5 because I don't want to use CloudKit just yet:</p>
  
  <p><img src="https://i.stack.imgur.com/hqnm1.png" alt="enter image description here"></p>
  
  <p>Within the  section of Xcode, in Xcode 6 I now see the following, as would everyone else:</p>
  
  <p><img src="https://i.stack.imgur.com/sepiq.png" alt="enter image description here"></p>
  
  <p>With My Entitlement Folder. So in my case, it's something like 82828282.com.company.app and that's in RED in the Capabilities section. </p>
  
  <p><img src="https://i.stack.imgur.com/ySIk4.png" alt="enter image description here"></p>
  
  <p>I don't quite get what I'm supposed to do to get this working. </p>
  
  <p><strong>Questions</strong></p>
  
  <p>1) Am I supposed to use CloudKit?</p>
  
  <p>2) Do I have to enable CloudKit in the App ID of the Developer Portal?</p>
  
  <p>3) Am I supposed to use iCloud Containers in the Developer Portal?</p>
  
  <p>My current iCloud set up is to use entitlements : TeamID.identifier. </p>
  
  <p>I've worked around this by submitting the app from Xcode 5.1.1 because it's an urgent fix, but I just don't understand what to do to progress with using the iOS 8 and Xcode 6.0.1 for future development, with iCloud and Core Data still very much enabled in my app. </p>
  
  <p>I have seen some similar cases within SO, like here (<a href="https://stackoverflow.com/questions/25818825/icloud-core-data-not-available-after-running-in-xcode-6-ios-8-sdk">iCloud Core Data Not available after running in Xcode 6 / ios 8 SDK</a>) and <a href="https://stackoverflow.com/questions/24441909/using-core-data-icould-and-cloudkit-for-syncing-and-backup-and-how-it-works-tog">Using Core Data, iCloud and CloudKit for syncing and backup and how it works together</a> but I'm really not sure what to do. </p>
  
  <p>Any guidance at all would really be appreciated. </p>