- 我正在开发一个应用程序:
com.myco.foo
- 它使用“关联域”
- 由于此错误,我无法在实体 iPhone 上运行该应用:
无法对“我的应用程序”进行代码签名。没有任何有效的配置文件允许指定的权利:com.apple.developer.associated-domains。
我如何创建一个新的配置文件来签署它?
当我尝试通过执行以下操作创建自己的时:
- 应用 ID -> 新 (https://developer.apple.com/account/ios/identifier/bundle)
- id: 'com.myco.foo'
- 启用关联域
- 配置文件 -> 新 (https://developer.apple.com/account/ios/profile/)
- 类型:开发
- 选择上面创建的app id
- 选择我的设备
- 完成创作
- 下载
- 打开(打开 Xcode,但 Xcode 没有说明我打开的配置文件)
我尝试在设备上运行,但出现错误:
标识符为“com.myco.foo”的 App ID 不可用。
当我将项目应用程序 ID 更改为 com.myco.foo2
时,我得到了原始错误。
最佳答案
首先,我会说为您的应用程序重新生成所有开发(或分发,如果您正在尝试存档)配置文件。
然后,添加关联的域功能。
来自Adding Capabilities Apple 应用分发指南部分:
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.
关于ios - 如何创建具有权利的新配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39362274/