Why am I all of a suddent getting this on successful builds with Apple?
Although submission for App Store review was successful, you may want to correct the following issues in your next submission for App Store review. Once you've corrected the issues, upload a new binary to App Store Connect.
ITMS-91053: Missing API declaration - Your app’s code in the “Test” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. 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.








This is all documented in the Apple's website. Here are the steps:
At the top level of this property list file, add the following key to the dictionary:
NSPrivacyAccessedAPITypesBasically, the keys that you need to add have been mentioned in the Apple's email:
... you must include a NSPrivacy...., in this link search for each of the keys mentioned in your email starting withNSPrivacy...and see what the accepted reason codes are related to your own app and add it.You should have one
itemfor eachNSPrivacy...key under theNSPrivacyAccessedAPITypes, which each of them has only onePrivacy Accessed API Typewhich is the key name and onePrivacy Accessed API Reasonswhich can include one or more reason codes.And Do not forget to select target for PrivacyInfo.xcprivacy file.
References:
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files#4284009
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api