Note
We recommend integrating with CocoaPods or Swift Package Manager in order to automatically add the Privacy Manifest to your app.
-
Download the Device Date Collector iOS SDK v4.1.10 or later of XCFramework.
-
Copy the
PrivacyInfo.xcprivacy
file to the root of your app. -
Navigate to App Target > Build Phases > Copy Bundle Resources > Add the XCPrivacy Manifest to this Section.
-
Archive your app.
-
Go to Archives, select the latest archive, then select Generate Privacy Report.
-
Save the report.
-
Open the report. The report should match the following attributes.
Table 2. Example of the Privacy Report attributes
Location
Tracking
Linked
Precise Location
App functionality
NO
NO
Coarse Location
App functionality
NO
NO
Identifiers
NO
NO
Device ID
App functionality
NO
NO
Usage Data
NO
NO
Product Interaction
App functionality
NO
NO
Diagnostics
NO
NO
Performance Data
App functionality
NO
NO
Other Data
NO
NO
Other Data Types
App functionality
NO
NO
-
Within your Xcode project, open the
Info.plist
file. -
Add a new row with this name,
NSLocationWhenInUseUsageDescription
, then press enter.The row changes to
Privacy - Location When In Use Usage Description
. Verify that it's a string. Verify that the description isWe need to use your location in order to provide the best experience
.
Note
If you already have a Privacy Manifest in your app, merge the manifest from the iOS SDK with the manifest in your app.