swift-sdk
swift-sdk copied to clipboard
Mapping PrivacyInfo in podspec file
Mapping PrivacyInfo in podspec file
🔹 Jira Ticket(s)
✏️ Description
Please provide a brief description of what this pull request does.
You forgot to map the PrivacyInfo file type in the podspec
Thanks for the PR!
I had tested an App with SPM generated Privacy report which had data from SDK's manifest.
@silvgabriel, does the Cocoapods based project not pull privacy manifest from SDK when generating report? If so, does this change rectify the issue?
Hi @Ayyanchira
SPM is working well because you only map the Resources
folder and everything we have inside this folder will appear in the project.
In the CocoaPod podspec you map the file types in the resource part and the xcprivacy
type is missing, so the private manifest file does not appear/mapped.
Cocoapods will just pull the files into the generated report that is mapped into the podspec.
This PR fixes the CocoaPod part, check the image below, it is the Iterable-iOS-SDK
pod installed in my project:
Another way to resolve this is to equalize the podspec with the SPM file by mapping just the Resource
folder (without specifying types) so the CocoaPods will map all files inside the resource folder.