SEC-002 P0: PrivacyInfo.xcprivacy 缺少關鍵 API 宣告
Resolved 💬 2 comments Opened Mar 22, 2026 by stephen-taipei Closed Mar 25, 2026
問題描述
PrivacyInfo.xcprivacy 僅宣告了 UserDefaults 和 FileTimestamp,缺少應用實際使用的多個隱私 API,可能導致 App Store 審查拒絕或應用被下架。
檔案位置
ios-swift/Connectors/PrivacyInfo.xcprivacy
缺少的 API 宣告
- NSPrivacyAccessedAPICategorySystemBootTime (用於 biometric auth 時間檢查)
- NSPrivacyAccessedAPICategoryDiskSpace (若有備份功能)
- 其他已使用但未宣告的 API (需完整掃描)
風險評估
- App Store 審查拒絕
- 應用可能被 Apple 下架
- 隱私合規違反
解決方案
- 執行完整的隱私 API 掃描,識別應用使用的所有 API
- 對每個已識別的 API 補充 PrivacyInfo.xcprivacy 宣告
- 驗證每個 API 的用途和理由符合 Apple 要求
- 在 Release build 前進行 App Store 預檢查
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗