medium · M6 · MASVS-PRIVACY-2 · PTKD-IOS-REQUIRED-REASON-UNDECLARED
Required-reason API used without a declared reason
The binary appears to use an Apple 'required-reason' API but the privacy manifest does not declare that API category. Apple requires an approved reason code for each such API.
How it is exploited
The binary references an Apple required-reason API (file timestamps, system boot time, disk space, NSUserDefaults) but the privacy manifest does not declare that category with an approved reason. Apple's automated review flags exactly this mismatch on upload.
Why it matters
App Store rejection, and a signal that the app touches fingerprinting-capable APIs without a stated justification.
How to fix it
- Add the flagged API category under NSPrivacyAccessedAPITypes in PrivacyInfo.xcprivacy.
- Set an approved NSPrivacyAccessedAPITypeReasons value for it; remove the API call if the reason does not apply.
Does your app have this?
PTKD checks your build or your source project for PTKD-IOS-REQUIRED-REASON-UNDECLARED and every other check in this knowledge base.
Scan your appReferences
Related checks (M6)
- PII in a response over a cacheable/first-party channel
- Supabase view in the public schema exposes auth.users
- Ads start before the user's consent (text search)
- Device/user PII sent to a third party
- Google Play restricted or sensitive permission
- Privacy manifest has invalid keys or values
- Missing Apple privacy manifest (PrivacyInfo.xcprivacy)
- Third-party tracker not disclosed in the privacy manifest