Guideline 2.5.1 - Performance - Software Requirements
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.
翻译下:
指导2.5.1 -性能-软件需求我们注意到你的应用程序使用HealthKit,但你的应用似乎并不包括任何需要的健康数据的主要特征。HealthKit的用途是分享健康和健身数据与其他应用程序或设备,它应该只在应用程序需要使用这些数据的应用程序的核心功能。下一个步骤为了解决这个问题,请删除任何HealthKit从你的应用程序功能,以及对这个程序的任何引用与HealthKit交互性的应用程序或其元数据。这包括移除任何HealthKit-related键在你的应用程序的信息。plist以及删除任何调用HealthKit api,包括那些来自第三方平台,从你的应用程序。
我想不通的是,为什么很多程序员会把用不到的权限打开 ???? (比如我接收的这位大兄弟的代码 ,什么权限都写上了,但是只用到了相机,相册)
解决方法1:如果自己没有使用到 HealthKit 权限
1.检查自己的info .plist 是否有NSHealthShareUsageDescription NSHealthUpdateUsageDescription 这两个 删除掉就可以了
2. TARGETS -> Capabilities HealthKit 是否是打开的状态
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· Ollama——大语言模型本地部署的极速利器
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现