先看一下問(wèn)題
自從3月份開(kāi)始 只要新上線過(guò)著更新APP就會(huì)收到蘋(píng)果的郵件 先看郵件
Although submission for App Store review was successful, you may want to correct the following issues in your next submission for App Store review. Once you've corrected the issues, upload a new binary to App Store Connect.
ITMS-91053: Missing API declaration - Your app’s code in the “----” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryDiskSpace. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason
意思是從五月份開(kāi)始如果沒(méi)有添加權(quán)限說(shuō)明 這就不是警告了 就是被拒的理由了
添加權(quán)限說(shuō)明很好添加 Xcode里 command+ N 搜索 pr 就會(huì)出現(xiàn)如下選項(xiàng) 選第一個(gè)
添加上后 進(jìn)入 如圖 先添加一個(gè)type的 array
有幾項(xiàng)警告就添加幾個(gè)item
每個(gè)item下再添加一個(gè)type 一個(gè) reasons 如圖
type就根據(jù)郵件內(nèi)容選最右邊有選項(xiàng)
關(guān)鍵的是reasons
系統(tǒng)會(huì)自動(dòng)檢測(cè)你需要添加的說(shuō)明 有幾項(xiàng)就添加幾個(gè)item 把所有的選項(xiàng)都添加上 如圖
如此 再次發(fā)版就不會(huì)有警告郵件了