title: How do I create a new provisioning profile with entitlements?
body: <ul>
  <li>I'm working on an app: <code>com.myco.foo</code></li>
  <li>It uses "Associated Domains"</li>
  <li>I can't run the app on a physical iPhone due to this error:</li>
  </ul>
  
  <p><code>Failed to code sign "my app". None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.associated-domains.</code></p>
  
  <p>How do I create a new provisioning profile to sign this?</p>
  
  <p>When I try to create my own by doing the following:</p>
  
  <ul>
  <li>App ID's -> new (<a href="https://developer.apple.com/account/ios/identifier/bundle" rel="nofollow">https://developer.apple.com/account/ios/identifier/bundle</a>)</li>
  <li>id: 'com.myco.foo'</li>
  <li>enable associated domains</li>
  <li>Provisioning Profiles -> new (<a href="https://developer.apple.com/account/ios/profile/" rel="nofollow">https://developer.apple.com/account/ios/profile/</a>)</li>
  <li>type: development</li>
  <li>select app id created above</li>
  <li>select my device</li>
  <li>finish creation</li>
  <li>download</li>
  <li>open (which opens Xcode but Xcode doesn't say anything about the profile that i opened)</li>
  </ul>
  
  <p>I try to run on device, I get the error: </p>
  
  <p><code>An App ID with Identifier 'com.myco.foo' is not available.</code></p>
  
  <p>When I change the project app id to <code>com.myco.foo2</code>, I get the original error.</p>