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