多嘴一句,苹果的这个要求好像烂尾了
最新补充---应用的隐私清单不会包含SDK的,所以需要等待SDK更新,不维护的SDK可能需要自己维护了
问题描述
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 “APPName” 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://deve<wbr>loper.apple.<wbr>com/document<wbr>ation/bundle<wbr>resources/pr<wbr>ivacy_manife<wbr>st_files/des<wbr>cribing_use_<wbr>of_required_<wbr>reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “APPName” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategorySystemBootTime. 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://deve<wbr>loper.apple.<wbr>com/document<wbr>ation/bundle<wbr>resources/pr<wbr>ivacy_manife<wbr>st_files/des<wbr>cribing_use_<wbr>of_required_<wbr>reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “APPName” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. 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://deve<wbr>loper.apple.<wbr>com/document<wbr>ation/bundle<wbr>resources/pr<wbr>ivacy_manife<wbr>st_files/des<wbr>cribing_use_<wbr>of_required_<wbr>reason_api.
ITMS-91053: Missing API declaration - Your app’s code in the “APPName” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults. 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://deve<wbr>loper.apple.<wbr>com/document<wbr>ation/bundle<wbr>resources/pr<wbr>ivacy_manife<wbr>st_files/des<wbr>cribing_use_<wbr>of_required_<wbr>reason_api.
Apple Developer Relations
苹果要求开发人员在其应用程序的隐私清单中声明使用某些 API 的原因,目前正式放出了这份需要声明的 API 列表。
公告:https://developer.apple.com/news/?id=z6fu1dcu
需审核列表:https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api?language=objc
解决方式:
1.需要新建一个隐私文件(Xcode15 以上有这个文件)
2.配置文件中的内容(不用手动输入,后面的下拉菜单里面都有)
3.具体对应内容如下
1、NSPrivacyAccessedAPICategoryUserDefaults MyApp
CA92.1
Declare this reason to access user defaults to read and write information that is only accessible to the app itself.
This reason does not permit reading information that was written by other apps or the system, or writing information that can be accessed by other apps.
2、NSPrivacyAccessedAPICategoryFileTimestamp MyApp
DDA9.1
Declare this reason to display file timestamps to the person using the device.
Information accessed for this reason, or any derived information, may not be sent off-device.
3、NSPrivacyAccessedAPICategorySystemBootTime MyApp
35F9.1
Declare this reason to access the system boot time in order to measure the amount of time that has elapsed between events that occurred within the app or to
perform calculations to enable timers.
Information accessed for this reason, or any derived information, may not be sent off-device.
There is an exception for information about the amount of time that has elapsed between events that occurred within the app, which may be sent off-device.
4、NSPrivacyAccessedAPICategoryDiskSpace MyApp
85F4.1
Declare this reason to display disk space information to the person using the device. Disk space may be displayed in units of information
(such as bytes) or units of time combined with a media type (such as minutes of HD video).