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 是否是打開的狀態