iOS提审 2024年5月1开始这些新规需注意啦
2024-03-13 本文已影响0人
我从不写bug
今天项目提审的时候收到封苹果的邮件
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

附上查看api的apple文档链接:Describing use of required reason API | Apple Developer Documentation
如何配置?
目前我用的是Xcode15.2版本,打开项目command + n 新建文件 在弹出框中搜索Privacy 选择 App Pirvacy


其他的API配置也可以根据这个来 只需要在Privacy Accessed API Types这个Array中添加对应的Item即可 例如Disk space 或System boot time APIS等,在apple文档中可以查看对应的NSPrivacyAccessedAPITypeReasons相关值 选择对应的即可。