What steps to take to resolve following error related to missing PrivacyInfo:
The archive does not contain any "PrivacyInfo.xcprivacy" files.
This happens when I try to Generate Privacy Report
on the archive.
Steps taken to define Privacy Manifest and debug this error:
- Defined the
PrivacyInfo.xcprivacy
and ensured it loading correctly in the Xcode 15 beta 5. - Added
PrivacyInfo.xcprivacy
to same location asInfo.plist
- Screenshot added below: - Ensured the target membership of
PrivacyInfo.xcprivacy
to frameworks. - Archive the framework and also use command line to create distribution
.xcframework
- receiving the error with archive and unable to see.xcprivacy
file in the.xcframework
(next question).
Will this PrivacyInfo.xcprivacy
file be locatable in the archive or final .xcframework
content on the same level as Info.plist
? If yes, where to find it?
For reference, Apple Developer - Privacy manifest files, doesn't mention any other specific steps for Framework. Here is the WWDC-2023 video: WWDC-2023 Privacy Menifest, which illustrates various steps.