Xcode PrivacyInfo.xcprivacy

2024年05月01日苹果上架/更新应用需项目中所需第三方SDK的隐私列表,总结说明如下:

1,不需要用到隐私权限的SDK或者第三方库,不用管;
2,cocoapods中依赖的第三方库,更新第三方库,有些第三方已经适配了并且会自动生成PrivacyInfo.xcprivacy;
3,如果没有自动生成PrivacyInfo.xcprivacy的库,那么会在源码文件同级目录下生成/Resources/PrivacyInfo.xcprivacy文件;
4,如果是手动导入的第三方库,用到了隐私权限,需要将信息手动输入到App中的/Resources/PrivacyInfo.xcprivacy中。

备注:
1,每一个pod所需的framework下都有一个关于本库的PrivacyInfo.xcprivacy文件;
2,如果某些framework没有PrivacyInfo.xcprivacy,需要在本地源码目录下,创建/Resources/PrivacyInfo.xcprivacy,然后添加内容;

实现:
同上2,更新当前pod中的SDK;
同上3,https://github.com/ymoyao/cocoapods-privacy 可根据此内容进行操作;
同上4,待总结

#

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>35F9.1</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>C617.1</string>
			</array>
		</dict>
		<dict>
			<key>NSPrivacyAccessedAPIType</key>
			<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
			<key>NSPrivacyAccessedAPITypeReasons</key>
			<array>
				<string>CA92.1</string>
			</array>
		</dict>
	</array>
	<key>NSPrivacyCollectedDataTypes</key>
        <array>
            <dict>
                <key>NSPrivacyCollectedDataType</key>
                <string>NSPrivacyCollectedDataTypePreciseLocation</string>
                <key>NSPrivacyCollectedDataTypeLinked</key>
                <false/>
                <key>NSPrivacyCollectedDataTypeTracking</key>
                <false/>
                <key>NSPrivacyCollectedDataTypePurposes</key>
                <array>
                    <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
                </array>
            </dict>
        </array>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
</dict>
</plist>

#

Leave a Reply

Required fields are marked *