ios - com.apple.developer.healthkit.access 警告

标签 ios xcode warnings healthkit

我已经添加并创建了分配给 HealthKit 的所有内容,但 xcode 显示此警告:

Code Signing Warning: Provisioning profile ".." for ".." 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.

我尝试将 com.apple.developer.healthkit.access 键添加为 bool 值,但 xcode 无法解析该授权键值(生成构建错误)。 使用 healthkit 的应用程序中一切正常,但我也担心最终分发和开发分发。

更新

因为我不明白这个警告是关于什么的,而且我不想在授权中添加不必要的行,所以我将应用程序的新版本上传到 App Store。 没有任何来自 apple 的消息和拒绝,所以它现在可以出售。对于那些担心被拒绝的人来说,这可能是一个有用的信息。

最佳答案

在xxx.entitlements中,添加一个新键com.apple.developer.healthkit.access,类型为Array,然后留空。然后警告将被解决。

至于原因,目前还不清楚。

感谢Xcode HealthKit com.apple.developer.healthkit.access entitlements warning just started appearing .

关于ios - com.apple.developer.healthkit.access 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51944508/

相关文章:

python - 如何忽略 Python 中的弃用警告

r - 此警告的含义; "Warning message: In get(object, envir = currentEnv, inherits = TRUE) : restarting interrupted promise evaluation"

ios - 如何在 Swift 中为 View 集合中的每个单元格添加弹出窗口

ios - 在 iOS 上使用 SecCertificateCreateWithData 创建证书

xcode - 优选内容大小不会缩小

swift - 手动添加 Snapkit 到 xcode

ios - 从字符串中提取图像的URL

ios - Firebase 实时阵列计数不匹配

ios - 提取 NSDate() 的值

java - 如何在 java 中禁用运行时警告?