iOS 審核 需要訪問用戶敏感數(shù)據(jù)的 App 增加了審核要求

23年 秋 蘋果要求開發(fā)人員在其應用程序的隱私清單中聲明使用某些 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 以上有這個文件)


image.png

2配置文件中的內容


image.png

24年3月 提審時撮胧,蘋果給的說明是钥。
Hello,

We noticed one or more issues with a recent submission for App Store review for the following app:

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 “PlugIns/MyAppShare.appex/MyAppShare” 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://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “MyApp” 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://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “MyApp” 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://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

ITMS-91053: Missing API declaration - Your app’s code in the “MyApp” 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_api.

ITMS-91053: Missing API declaration - Your app’s code in the “MyApp” 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://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

Apple Developer Relations

總結下來是 五處(其中1和5是同一個隱私在不同的taget里 需要分別在taget里創(chuàng)建 隱私文件)
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).

5劝堪、NSPrivacyAccessedAPICategoryUserDefaults MyAppShare

?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市谁榜,隨后出現(xiàn)的幾起案子幅聘,更是在濱河造成了極大的恐慌,老刑警劉巖窃植,帶你破解...
    沈念sama閱讀 206,311評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件帝蒿,死亡現(xiàn)場離奇詭異,居然都是意外死亡巷怜,警方通過查閱死者的電腦和手機葛超,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,339評論 2 382
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來延塑,“玉大人绣张,你說我怎么就攤上這事」卮” “怎么了侥涵?”我有些...
    開封第一講書人閱讀 152,671評論 0 342
  • 文/不壞的土叔 我叫張陵,是天一觀的道長宋雏。 經常有香客問我芜飘,道長,這世上最難降的妖魔是什么磨总? 我笑而不...
    開封第一講書人閱讀 55,252評論 1 279
  • 正文 為了忘掉前任嗦明,我火速辦了婚禮,結果婚禮上蚪燕,老公的妹妹穿的比我還像新娘娶牌。我一直安慰自己,他們只是感情好馆纳,可當我...
    茶點故事閱讀 64,253評論 5 371
  • 文/花漫 我一把揭開白布诗良。 她就那樣靜靜地躺著,像睡著了一般鲁驶。 火紅的嫁衣襯著肌膚如雪累榜。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,031評論 1 285
  • 那天,我揣著相機與錄音壹罚,去河邊找鬼葛作。 笑死,一個胖子當著我的面吹牛猖凛,可吹牛的內容都是我干的赂蠢。 我是一名探鬼主播,決...
    沈念sama閱讀 38,340評論 3 399
  • 文/蒼蘭香墨 我猛地睜開眼辨泳,長吁一口氣:“原來是場噩夢啊……” “哼虱岂!你這毒婦竟也來了?” 一聲冷哼從身側響起菠红,我...
    開封第一講書人閱讀 36,973評論 0 259
  • 序言:老撾萬榮一對情侶失蹤第岖,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后试溯,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體蔑滓,經...
    沈念sama閱讀 43,466評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 35,937評論 2 323
  • 正文 我和宋清朗相戀三年遇绞,在試婚紗的時候發(fā)現(xiàn)自己被綠了键袱。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,039評論 1 333
  • 序言:一個原本活蹦亂跳的男人離奇死亡摹闽,死狀恐怖蹄咖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情付鹿,我是刑警寧澤澜汤,帶...
    沈念sama閱讀 33,701評論 4 323
  • 正文 年R本政府宣布,位于F島的核電站舵匾,受9級特大地震影響银亲,放射性物質發(fā)生泄漏。R本人自食惡果不足惜纽匙,卻給世界環(huán)境...
    茶點故事閱讀 39,254評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望拍谐。 院中可真熱鬧烛缔,春花似錦、人聲如沸轩拨。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,259評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽亡蓉。三九已至晕翠,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背淋肾。 一陣腳步聲響...
    開封第一講書人閱讀 31,485評論 1 262
  • 我被黑心中介騙來泰國打工硫麻, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人樊卓。 一個月前我還...
    沈念sama閱讀 45,497評論 2 354
  • 正文 我出身青樓拿愧,卻偏偏與公主長得像,于是被迫代替她去往敵國和親碌尔。 傳聞我的和親對象是個殘疾皇子浇辜,可洞房花燭夜當晚...
    茶點故事閱讀 42,786評論 2 345

推薦閱讀更多精彩內容