问题1.
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.
翻看代码,确实没有使用到HealthKit.最后想起来App ID,查看果然开启了。
综上:
1.关闭你项目中的capabilities里面的HealthKit
2.代码检查下是否使用HealthKit框架
3.去apple developer账号里面检查app id,关闭HealthKit
4.删除相关证书和配置文件,重新制作。
5.如果你的项目中没有使用HealthKit,这些权限提醒就不要加
健康分享权限:Privacy - Health Share Usage Description
健康更新权限:Privacy - Health Update Usage Description
运动使用权限:Privacy - Motion Usage Description
6.打包发布,等待结果。