When submitting your app to TestFlight for review, you may encounter the following error message from Apple Developer Relations:
Error Message:
This error is typically associated with the PrivacyInfo.xcprivacy
file in the AAFoundation.framework
, indicating that the reason code provided is invalid according to Apple's guidelines.
CA Strong Authentication 9.1
The issue arises due to a misconfiguration in the privacy manifest file (PrivacyInfo.xcprivacy
) within the framework. Specifically, the value for the NSPrivacyAccessedAPITypeReasons key does not match a valid reason code as required by Apple for using an API in the NSPrivacyAccessedAPICategoryUserDefaults category.
Additionally, it was identified that the signing certificate for the framework was revoked by the certificate owner, which can cause further complications during the submission process.
To resolve this issue, you need to re-sign the affected framework using a valid Apple Distribution certificate. Below are the steps to do this:
Re-Signing the Framework:
RiskAuthDeviceDNAFramework.xcframework
with a valid Apple Distribution certificate:<certificate name>
with the actual name of your valid Apple Distribution certificate.Example:
codesign --deep -s "Apple Distribution: ABC, Inc (NAME)" -fv RiskAuthDeviceDNAFramework.xcframework
Re-upload the Binary:
Alternative Solution:
A re-signed version of the SDK has been uploaded to KB article for immediate use. You can use this to proceed with app submission.
Important: There are no code changes in this SDK, hence the version number remains the same. However, discussions are underway with the engineering lead to upload this re-signed version to the official software repository for future use.
For further details on this Apple policy, including a list of required reason APIs and approved usage reasons, please visit the Apple Developer Documentation.