How to fix App Privacy warnings in Xcode project? | iOS | AppPrivacy | Disk Space | User Defaults
ฝัง
- เผยแพร่เมื่อ 10 ม.ค. 2025
- Creative Study
Describe the data your app or third-party SDK collects and the reasons required APIs it uses.
Apps and third-party SDKs - distributed as XCFrameworks, Swift packages, or Xcode projects - can contain a privacy manifest file, named PrivacyInfo. xcprivacy. The privacy manifest is a property list that records the types of data collected by your app or third-party SDK, and the required reasons APIs your app or third-party SDK uses. For each type of data, your app or third-party SDK collects and the category of required reasons API it uses, the app or third-party SDK needs to record the reasons in its bundled privacy manifest file.
Create a privacy manifest:
Choose File & click New File.
Scroll down to the Resource section, and select App Privacy File type.
Click Next.
Check your app or third-party SDK’s target in the Targets list.
Click Create.
NSPrivacyAccessedAPITypes
An array of dictionaries that describe the API types your app or third-party SDK accesses that have been designated as APIs that require reasons to access. Each dictionary in the NSPrivacyAccessedAPITypes array needs to contain these keys and values:
NSPrivacyAccessedAPIType:
A string that identifies the category of required reason APIs your app uses. These are the API types we can use: File timestamp APIs, System boot time APIs, Disk space APIs, Active keyboard APIs, User defaults APIs
NSPrivacyAccessedAPITypeReasons:
An array of strings that identifies the reasons your app uses the APIs. The values you provide must be the values associated with the accessed API type is DDA9.1, C617.1, 3B52.1, 0A2A.1, 35F9.1, 8FFB.1, 3D61.185F4.1, E174.1, 7D9E.1, B728.1, CA92.1, 1C8F.1, C56D.1, AC6B.1 etc.
Do Subscribe, like and Share with others.
keep it up sir
Thank you for the encouragement! I appreciate your support.
Keep it up 💯
Thank you