[英]How do I create a new provisioning profile with entitlements?
com.myco.foo
com.myco.foo
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: 当我尝试通过执行以下操作创建自己的:
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. 当我将项目应用程序ID更改为
com.myco.foo2
,我得到原始错误。
1) First of all make sure you have added your device udid
in provisioning profile you are using. 1)首先确保您已将
device udid
添加到正在使用的配置文件中。 If not added, add it from developer.apple.com and download latest provisioning profile, it resolves your issue. 如果未添加,请从developer.apple.com添加并下载最新的配置文件,它可以解决您的问题。
2) If you have not created Development and Distribution code signing certificates on developer.apple.com then ask relevant person for .p12 certificates
. 2)如果您尚未在developer.apple.com上创建开发和分发代码签名证书,请向相关人员询问
.p12 certificates
。
Looks like it needs to be a distribution type profile in order to run on a physical device: when creating the provisioning profile, you have to choose "Distribution: App Store". 看起来它需要是分发类型配置文件才能在物理设备上运行:在创建配置文件时,您必须选择“分发:App Store”。 You don't select any devices during creation.
您在创建过程中不选择任何设备。
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: 从Apple的App Distribution Guide的添加功能部分:
To enable associated domains
启用关联的域
In the Capabilities pane, if Associated Domains isn't enabled, click the switch in the Associated Domains section.
在“功能”窗格中,如果未启用“关联域”,请单击“关联域”部分中的开关。
Click the Add button (+) at the bottom of the Domains table.
单击“域”表底部的“添加”按钮(+)。
Double-click the placeholder text in the table, and enter the domain name you want to add.
双击表中的占位符文本,然后输入要添加的域名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.