以后如何从配置文件中删除HealthKit

时间:2018-08-23 12:36:50

标签: swift xcode provisioning-profile health-kit

我有一个Watch-App,几周前通过创建分发配置概要文件,可以启用HealthKit。

现在事实证明,我在Watch App中不需要HealthKit。 (因此未在WatchKit Extension的-Target的-Capabilities中激活它,如下图所示):

Javadoc

到目前为止,一切都很好。

但是现在Xcode继续向我发送这2条警告消息(显然是因为原始的配置文件包括HealthKit,但Xcode中的设置却没有)...

Code Signing Warning: Provisioning profile "iOS Team Provisioning Profile: 
bundleID.watchkit.extension" for "MyApp WatchKit Extension" contains 
entitlements that aren't in the entitlements file: 
com.apple.developer.healthkit.access. To use these entitlements, add them to 
your entitlements file. Otherwise, remove unused entitlements from your 
provisioning profile.

我试图遵循Apple手册,据说在enter image description here(证书)下,应该可以更改配置文件所包含的选项。

所以我确实去了那里,并在我选择的配置文件上按了“编辑”:

The developer portal

但这是一个令人惊讶的地方:

除非手册中有说明,否则-不再需要任何设置开关来更改HealthKit的启用/禁用状态!

enter image description here

要禁用HealtKit怎么办?

也:删除旧的配置文件并尝试创建一个新的配置文件不起作用-既然此配置文件创建面具不再显示任何启用/禁用的开关(不再像是一对夫妇。 !)

1 个答案:

答案 0 :(得分:0)

在Apple Developer Portal中删除配置文件,然后创建一个新的文件。

相关问题