I’m trying to submit my app to the App Store, but I’m encountering the following error during validation:
Please correct the following issues and upload a new binary to App Store Connect.
ITMS-91055: Invalid API reason declaration – The PrivacyInfo.xcprivacy
for the “Frameworks/SCSDKCameraKit.framework/SCSDKCameraKit” file
contains “E174.1” as the value for a NSPrivacyAccessedAPITypeReasons
key instead of a valid reason code for using an API in the
NSPrivacyAccessedAPICategoryFileTimestamp category. Values for
NSPrivacyAccessedAPITypeReasons keys in any privacy manifest must be
valid reason codes for the corresponding API category. 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.
What I’ve tried:
- I reviewed the Apple Privacy Manifest Documentation to find valid reason codes.
- I located the PrivacyInfo.xcprivacy file within the SCSDKCameraKit.framework.
- I opened the file and found the following entry:
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
</dict>
</array>
- I understand that I need to replace E174.1 with a valid reason code, but I’m not sure which code to use or how to properly update the file.
Question:
- What is the correct reason code to use for the NSPrivacyAccessedAPICategoryFileTimestamp category?
- How should I update the PrivacyInfo.xcprivacy file to comply with Apple’s requirements?
Any guidance or examples would be greatly appreciated. Thank you!