title: Cannot add App Group containers entitlement to App ID
body: <p>I'm building a Share Extension for my app and running into an issue when creating an App Group in Xcode.</p>
  
  <p>I gave the App Group the name: <strong>group.iosmoonsand.notes</strong></p>
  
  <p>Xcode gave the following error when trying to <em>Add the "App Groups Containers" entitlement to your App ID</em>:</p>
  
  <blockquote>
    <p>Communication with Apple failed</p>
  </blockquote>
  
  <p>This happens after I hit the <em>"Fix Issue"</em> button also.
  This happens whether I have my iPhone connected and run the program on it or if I run the program in the Xcode Simulator.</p>
  
  <p>Screenshot:
  <a href="https://i.stack.imgur.com/zWy2b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zWy2b.png" alt="App Groups Containers error"></a></p>
  
  <p>The program runs when I run from the Xcode Simulator but when I try to Build/Run the program from my iPhone, I get the following error:</p>
  
  <blockquote>
    <p>Communication with Apple failed Your account does not have sufficient
    permissions to modify containers.</p>
  </blockquote>
  
  <p>​Screenshot:
  <a href="https://i.stack.imgur.com/9JwBM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9JwBM.png" alt="account does not have sufficient permissions"></a></p>
  
  <p>I tried the following:</p>
  
  <ul>
  <li>​R​emoving my account from the Xcode preferences and adding it again 
  ​</li>
  <li>Logging in to my developer account​ online.</li>
  </ul>
  
  <p>​T​he same thing happens​ after I Clean/Build/Run the program from my iPhone.​</p>
  
  <p>​I have a regular Apple ID. As Apple's Advanced App Capabilities page reads, I should have access to App Groups:
  <a href="https://developer.apple.com/support/app-capabilities/" rel="nofollow noreferrer">https://developer.apple.com/support/app-capabilities/</a></p>