Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a new provisioning profile with entitlements?

  • I'm working on an app: com.myco.foo
  • It uses "Associated Domains"
  • I can't run the app on a physical iPhone due to this error:

Failed to code sign "my app". None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.associated-domains.

How do I create a new provisioning profile to sign this?

When I try to create my own by doing the following:

  • App ID's -> new (https://developer.apple.com/account/ios/identifier/bundle)
  • id: 'com.myco.foo'
  • enable associated domains
  • Provisioning Profiles -> new (https://developer.apple.com/account/ios/profile/)
  • type: development
  • select app id created above
  • select my device
  • finish creation
  • download
  • open (which opens Xcode but Xcode doesn't say anything about the profile that i opened)

I try to run on device, I get the error:

An App ID with Identifier 'com.myco.foo' is not available.

When I change the project app id to com.myco.foo2, I get the original error.

like image 352
Loren Avatar asked Nov 09 '22 09:11

Loren


1 Answers

First I would say regenerate all Development (or Distribution if you are trying to archive) provisioning profiles for your application.

Then, add the associated domain capability.

From the Adding Capabilities section of Apple's App Distribution Guide:

To enable associated domains

  1. In the Capabilities pane, if Associated Domains isn’t enabled, click the switch in the Associated Domains section.

  2. Click the Add button (+) at the bottom of the Domains table.

  3. Double-click the placeholder text in the table, and enter the domain name you want to add.

Associated Domains

like image 180
JAL Avatar answered Nov 14 '22 23:11

JAL