简体   繁体   English

如何使用权利创建新的配置文件?

[英]How do I create a new provisioning profile with entitlements?

  • I'm working on an app: com.myco.foo 我正在开发一个app: com.myco.foo
  • It uses "Associated Domains" 它使用“Associated Domains”
  • I can't run the app on a physical iPhone due to this error: 由于此错误,我无法在物理iPhone上运行该应用程序:

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 启用关联的域

  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. 双击表中的占位符文本,然后输入要添加的域名。

相关域名

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 权利不匹配:供应配置文件问题 - Entitlements Do Not Match: Provisioning Profile Issue 将新的应用程序版本提交到应用程序商店时,我是否必须创建新的配置文件? - Do i have to create new provisioning profile when submitting new app version to app store? 如何删除Xcode创建的配置文件并创建新的配置文件? - How to delete Xcode created provisioning profile and create new? ios:如何在没有系留设备的情况下向配置文件添加新的UDID? - ios: How do I add a new UDID to provisioning profile without a tethered device? 有效的配置文件均未允许指定的权利 - none of valid provisioning profile allowed the specified entitlements 无法从xcode创建新的配置文件 - Cannot create new provisioning profile from xcode 无法调试icloud应用:授权文件与您的配置文件中指定的文件不匹配 - cannot debug icloud app: Entitlements file do not match those specified in your provisioning profile 您的应用程序包签名中的权利与配置文件中包含的权利不匹配 - The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile 代码签名权利文件与您的配置文件中指定的文件不匹配。 - Code Signing Entitlements file do not match those specified in your provisioning profile. 您的应用程序包签名中的权利与您的配置文件中包含的权利不匹配 - Entitlements in your app bundle signature do not match the ones that are contained in your provisioning profile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM