Venugopal Reddy
Venugopal Reddy

Reputation: 11

Privacy Nutrition Labels are not showing up in privacy report for a sample iOS app built using my third party SDK?

I work at a company that distributes its third-party iOS SDK to its customers. As per WWDC2023, Apple has made it mandatory for third-party SDKs to include PrivacyInfo.xcprivacy manifest file which contains the Privacy Nutrition Labels. I have added this file to my SDK and we have a custom build script to generate .zip file to distribute. The manifest file is getting added in .zip file, but when we use this SDK to build a sample iOS application, when I generate the archive file and try to generate a privacy report for this archive, it says " The archive does not contain any PrivacyInfo.xcprivacy files ". Can you please suggest what could be that I am doing wrong?

Apple WWDC2023 video for third-party SDKs - https://developer.apple.com/videos/play/wwdc2023/10060/

zip structure

error message in xcode

I have to manually place this file without using Xcode and it didn't work. Need help to make sure the manifest file content gets included in privacy report of the sample iOS app that uses this SDK.

Upvotes: 1

Views: 1142

Answers (2)

Tieme
Tieme

Reputation: 65449

Resources

The file should be included as a resource, not as a source. It should en up in the same folder as Info.plist

Data collection vs required reason API usage

Use the privacy report to better understand all of the data collected by your app

https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests#4239187

The Privacy Report only includes the collected data types the app and it's SDK's collect and track. The descriptions of use of required reason API's information that is included in the manifests is never included in the privacy report.

So if you app, or the SDKs that it uses don't collect any data, your report could be empty or can't be saved.

Upvotes: 0

Yusuke Iekushi
Yusuke Iekushi

Reputation: 11

Did you add appropriate targets to the PrivacyInfo.xcprivacy file?

I fixed the same error by doing so.

Upvotes: 1

Related Questions