iOS开发基础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.

试了很多次,稍微总结下:

第一步:主项目添加PrivacyInfo.xcprivacy

NSPrivacyAccessedAPITypes NSPrivacyAccessedAPIType NSPrivacyAccessedAPICategoryFileTimestamp NSPrivacyAccessedAPITypeReasons 0A2A.1 NSPrivacyAccessedAPIType NSPrivacyAccessedAPICategoryUserDefaults NSPrivacyAccessedAPITypeReasons C56D.1

打包上传,结论:问题仍存在
原因:尽管已在主项目中添加了 PrivacyInfo.xcprivacy 文件,但苹果仍因 AFNetworking 和 MBProgressHUD 缺少隐私清单文件(Privacy Manifest)而拒绝审核。这是因为苹果要求 第三方 SDK 自身必须包含隐私清单文件,或开发者需在主项目中补充声明其隐私行为。

第二步:更新AFNetworking

pod 'AFNetworking', '~> 4.0.0'
pod 'MBProgressHUD', '~> 1.2.0'

开始我是直接在AFNetworking和MBProgressHUD中手动添加 PrivacyInfo.xcprivacy 文件,编译发现AFNetworking会报错,所以把AFNetworking 手动添加的PrivacyInfo.xcprivacy 文件删掉了,然后更新AFNetworking、MBProgressHUD至最新版本。

再次上传发现苹果不再发邮件警告了。上传至AppStore的包也不会出现“二进制无效”的问题

posted @   Mr.陳  阅读(287)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· PowerShell开发游戏 · 打蜜蜂
· 凌晨三点救火实录:Java内存泄漏的七个神坑,你至少踩过三个!
点击右上角即可分享
微信分享提示