title: has no valid com.apple.developer.ubiquity-kvstore-identifier entitlement AD HOC iCloud
body: <p>I'm having trouble with iCloud key value store.
  I currently have a core data synced by iCloud working, but I cannot get K-V Store to work
  I'm getting:</p>
  
  <pre><code>com.domain.appname has no valid com.apple.developer.ubiquity-kvstore-identifier entitlement
  </code></pre>
  
  <p>com.domain.appname is the format of my appid, masked for privacy.</p>
  
  <p>This has been around for a while, and I've seen people having this issue and when reinstalling the app the issue is gone, but that won't apply to me. Don't know why.</p>
  
  <p>My entitlements:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
      &lt;key&gt;com.apple.developer.ubiquity-container-identifiers&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;$(TeamIdentifierPrefix)com.domain.appname&lt;/string&gt;
      &lt;/array&gt;
      &lt;key&gt;com.apple.developer.ubiquity-kvstore-identifier&lt;/key&gt;
      &lt;string&gt;$(TeamIdentifierPrefix)com.domain.appname&lt;/string&gt;
      &lt;key&gt;keychain-access-groups&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;$(TeamIdentifierPrefix)com.domain.appname&lt;/string&gt;
      &lt;/array&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>If you need anything else just ask, Thank you!</p>