Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iOS): don't reference PrivacyInfo.xcprivacy twice for new projects (
#46457) Summary: This PR fixes an issue with PrivacyInfo files. When generating a new project for using the latest RC 0.76.0.rc0 I got two privacy manifests references in Xcode. This is because `PrivacyManifestUtils` look for build phase reference: ```ruby reference_exists = target.resources_build_phase.files_references.any? { |file_ref| file_ref&.path&.end_with? "xcprivacy" } ``` Which doesn't exist for the generated template. Here is how Xcode file tree looks like after installing pods: ![CleanShot 2024-09-12 at 13 23 21@2x](https://github.com/user-attachments/assets/44e5bb55-a1ab-4b4b-bfe4-e4a6808afd15) ## Changelog: [IOS] [FIXED] - don't reference PrivacyInfo.xcprivacy twice for new projects Pull Request resolved: #46457 Test Plan: 1. Generate a new project 2. Execute pod install 3. Check if only one PrivacyInfo file exists Reviewed By: cortinico Differential Revision: D62580116 Pulled By: cipolleschi fbshipit-source-id: 1224a41307ae6c9b862832f145baf0edc92476d6
- Loading branch information