We noticed that your app uses HealthKit, but your app does not appear to include any primary features that require health or fitness data.
The intended use of HealthKit is to share health or fitness data with other apps or devices, and it should be used only in apps that require this data as a part of the app's core functionality.
Next Steps
To resolve this issue, please remove any HealthKit functionality from your app, as well as any references to this app’s interactivity with HealthKit from the app or its metadata. This includes removing any HealthKit-related keys in your app's Info.plist as well as removing any calls to HealthKit APIs, including those from 3rd party platforms, from your app.
程序员
翻译下:api
指导2.5.1 -性能-软件需求咱们注意到你的应用程序使用HealthKit,但你的应用彷佛并不包括任何须要的健康数据的主要特征。HealthKit的用途是分享健康和健身数据与其余应用程序或设备,它应该只在应用程序须要使用这些数据的应用程序的核心功能。下一个步骤为了解决这个问题,请删除任何HealthKit从你的应用程序功能,以及对这个程序的任何引用与HealthKit交互性的应用程序或其元数据。这包括移除任何HealthKit-related键在你的应用程序的信息。plist以及删除任何调用HealthKit api,包括那些来自第三方平台,从你的应用程序。app
我想不通的是,为何不少程序员会把用不到的权限打开 ???? (好比我接收的这位大兄弟的代码 ,什么权限都写上了,可是只用到了相机,相册)ide
解决方法1:若是本身没有使用到 HealthKit 权限性能
1.检查本身的info .plist 是否有NSHealthShareUsageDescription NSHealthUpdateUsageDescription 这两个 删除掉就能够了ui
2. TARGETS -> Capabilities HealthKit 是不是打开的状态this