iOS開發(fā)基礎(chǔ)150-隱私清單問題
打包上傳至AppStore時遇到的問題:
ITMS-91061: Missing privacy manifest - Your app includes “Frameworks/AFNetworking.framework/AFNetworking”, which includes AFNetworking, an SDK that was identified in the documentation as a commonly used third-party SDK. Starting February 12, 2025, if a new app includes a commonly used third-party SDK, or an app update adds a new commonly used third-party SDK, the SDK must include a privacy manifest file or you won’t be able to submit the app for review in App Store Connect. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: https://developer.apple.com/support/third-party-SDK-requirements.
ITMS-91061: Missing privacy manifest - Your app includes “Frameworks/MBProgressHUD.framework/MBProgressHUD”, which includes MBProgressHUD, an SDK that was identified in the documentation as a commonly used third-party SDK. Starting February 12, 2025, if a new app includes a commonly used third-party SDK, or an app update adds a new commonly used third-party SDK, the SDK must include a privacy manifest file or you won’t be able to submit the app for review in App Store Connect. Please contact the provider of the SDK that includes this file to get an updated SDK version with a privacy manifest. For more details about this policy, including a list of SDKs that are required to include signatures and manifests, visit: https://developer.apple.com/support/third-party-SDK-requirements.
試了很多次,稍微總結(jié)下:
第一步:主項目添加PrivacyInfo.xcprivacy
打包上傳,結(jié)論:問題仍存在
原因:盡管已在主項目中添加了 PrivacyInfo.xcprivacy 文件,但蘋果仍因 AFNetworking 和 MBProgressHUD 缺少隱私清單文件(Privacy Manifest)而拒絕審核。這是因為蘋果要求 第三方 SDK 自身必須包含隱私清單文件,或開發(fā)者需在主項目中補充聲明其隱私行為。
第二步:更新AFNetworking
pod 'AFNetworking', '~> 4.0.0'
pod 'MBProgressHUD', '~> 1.2.0'
開始我是直接在AFNetworking和MBProgressHUD中手動添加 PrivacyInfo.xcprivacy 文件,編譯發(fā)現(xiàn)AFNetworking會報錯,所以把AFNetworking 手動添加的PrivacyInfo.xcprivacy 文件刪掉了,然后更新AFNetworking、MBProgressHUD至最新版本。
再次上傳發(fā)現(xiàn)蘋果不再發(fā)郵件警告了。上傳至AppStore的包也不會出現(xiàn)“二進制無效”的問題
如果以上無效,那說明三方庫的作者還沒有更新隱私政策
https://gitcode.com/gh_mirrors/ap/app_privacy_manifest_fixer?utm_source=highlight_word_gitcode&word=app_privacy_manifest_fixer 推薦用這個腳本修復(fù)

浙公網(wǎng)安備 33010602011771號