今天项目提审的时候收到封苹果的邮件
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
![](https://img.haomeiwen.com/i15703640/41f1c6416f631b2c.png)
附上查看api的apple文档链接:Describing use of required reason API | Apple Developer Documentation
如何配置?
目前我用的是Xcode15.2版本,打开项目command + n 新建文件 在弹出框中搜索Privacy 选择 App Pirvacy
![](https://img.haomeiwen.com/i15703640/714bb3afeec0d71e.png)
![](https://img.haomeiwen.com/i15703640/4b31747bdf496396.png)
其他的API配置也可以根据这个来 只需要在Privacy Accessed API Types这个Array中添加对应的Item即可 例如Disk space 或System boot time APIS等,在apple文档中可以查看对应的NSPrivacyAccessedAPITypeReasons相关值 选择对应的即可。
网友评论