-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Added xcprivacy manifest to CocoaPods #3649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added xcprivacy manifest to CocoaPods #3649
Conversation
Using the resource bundle syntax
Added xcprivacy for CocoaPods
4700a71 to
1186e50
Compare
### Motivation The library already includes Privacy.xcprivacy in SPM, but when used with CocoaPods (mandatory in Flutter), these files are not exported as the podspec does not include that file as a resource bundle. ### Description Listing the PrivacyInfo.xcprivacy file inside the resource_bundles specification in the podspec allows to distribute the file correctly. Ref. CocoaPods/CocoaPods#10325 (comment) This GitHub issue contains the entire discussion on how to add these xcprivacy files and is referenced in multiple places; many libraries already follow this approach: https://github.com/firebase/firebase-ios-sdk/blob/main/FirebaseCrashlytics.podspec SDWebImage/SDWebImage#3649 flutter/packages#5846 Baseflow/flutter-permission-handler#1291 Baseflow/flutter-geolocator#1462
#3775) ### Motivation The library already includes Privacy.xcprivacy in SPM, but when used with CocoaPods (mandatory in Flutter), these files are not exported as the podspec does not include that file as a resource bundle. ### Description Listing the PrivacyInfo.xcprivacy file inside the resource_bundles specification in the podspec allows to distribute the file correctly. Ref. CocoaPods/CocoaPods#10325 (comment) This GitHub issue contains the entire discussion on how to add these xcprivacy files and is referenced in multiple places; many libraries already follow this approach: https://github.com/firebase/firebase-ios-sdk/blob/main/FirebaseCrashlytics.podspec SDWebImage/SDWebImage#3649 flutter/packages#5846 Baseflow/flutter-permission-handler#1291 Baseflow/flutter-geolocator#1462 Co-authored-by: Sergio Durban Belmonte <sergio@durban.cat>
|
@dreampiggy SDWebImage 5.19.1 from CP does not seem to include the privacy info file in the project, neither ship it in the bundled framework 🤔
|
|
I just realized what's wrong here. The app was only indirectly fetching SDWebImage/Core, not the full podspec. Thus the resources folder was missing. |
Seems CocoaPods bug... It ignore the root spec resource bundle... |
|
I can move this into SDWebImage/Core ? |
|
Acutally, if you use pod "SDWebImage", it actually integrates only "SDWebImage/Core" and the resource bundle contains privacy file |
* Added xcprivacy manifest to CocoaPods Using the resource bundle syntax * Update the README Added xcprivacy for CocoaPods



New Pull Request Checklist
I have read and understood the CONTRIBUTING guide
I have read the Documentation
I have searched for a similar pull request in the project and found none
I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)
I have added the required tests to prove the fix/feature I am adding
I have updated the documentation (if necessary)
I have run the tests and they pass
I have run the lint and it passes (
pod lib lint)This merge request fixes / refers to the following issues: ...
Pull Request Description
Using the resource bundle syntax
See: CocoaPods/CocoaPods#10325
Should work when using CocoaPods with
use_frameworks! :linkage => what_ever