From fbe79221b146aa6647dceb5a5c75873a48b69519 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 8 Dec 2023 20:06:55 +0800 Subject: [PATCH] Added xcprivacy manifest to CocoaPods (#3649) * Added xcprivacy manifest to CocoaPods Using the resource bundle syntax * Update the README Added xcprivacy for CocoaPods --- README.md | 4 ++-- SDWebImage.podspec | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26f39416..33d6e2bc 100644 --- a/README.md +++ b/README.md @@ -338,9 +338,9 @@ community can help you solve it. From Xcode 15, we provide the new `PrivacyInfo.xcprivacy` file for privacy details, see [Describing data use in privacy manifests](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests?language=objc) -You can exports the privacy report after archive your App by integrate SDWebImage via SwiftPM/XCFramework (Note: CocoaPods does not support currently). +You can exports the privacy report after archive your App by integrate SDWebImage via SwiftPM/XCFramework or CocoaPods (`use_framework` set to true). -For old version, as required by the [App privacy details on the App Store](https://developer.apple.com/app-store/app-privacy-details/), here's SDWebImage's list of [Data Collection Practices](https://sdwebimage.github.io/DataCollection/index.html). +For old version or if you're using static ar archive, as required by the [App privacy details on the App Store](https://developer.apple.com/app-store/app-privacy-details/), here's SDWebImage's list of [Data Collection Practices](https://sdwebimage.github.io/DataCollection/index.html). diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 3cc05d1d..e7c043c8 100644 --- a/SDWebImage.podspec +++ b/SDWebImage.podspec @@ -44,4 +44,5 @@ Pod::Spec.new do |s| mk.framework = 'MapKit' mk.dependency 'SDWebImage/Core' end + s.resource_bundles = {'SDWebImage' => ['WebImage/PrivacyInfo.xcprivacy']} end