Skip to content
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

Remove build files when underlying file_ref is removed. #861

Merged

Conversation

byohay
Copy link
Contributor

@byohay byohay commented Oct 24, 2021

A build file doesn't have any meaning without its underlying file
reference, as it can't be built.
In this commit, when a file reference is removed, in addition to the
previous file reference removal logic, the build files that refer to
the file references are removed as well.
Furthermore, the same is done for other types of objects that can be referenced by a build file: PBXReferenceProxy, PBXGroup.

@byohay byohay force-pushed the feature/file-reference-remove-build-files branch from 6269f59 to 7450dc3 Compare October 24, 2021 12:30
@byohay byohay force-pushed the feature/file-reference-remove-build-files branch from 7450dc3 to 7253a62 Compare October 31, 2021 13:46
@byohay byohay changed the title file reference: Remove build files when file is removed. file reference: Remove build files when underlying file_ref is removed. Nov 1, 2021
@byohay byohay force-pushed the feature/file-reference-remove-build-files branch from 688994f to 231eb4e Compare November 12, 2021 09:16
@dnkoutso
Copy link
Contributor

Hi @byohay thanks for this PR! Can you rebase on latest master please and place the CHANGELOG entry in the appropriate spot?

@dnkoutso dnkoutso closed this Dec 15, 2021
@dnkoutso dnkoutso reopened this Dec 15, 2021
@dnkoutso
Copy link
Contributor

accidental close

CHANGELOG.md Outdated
@@ -16,6 +16,10 @@
[Max Langer](https://github.com/mangerlahn)
[#853](https://github.com/CocoaPods/Xcodeproj/pull/853)

* file reference: Remove build files when underlying file_ref is removed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please add two empty spaces at the end of this line for markdown formatting to work properly.

A build file doesn't have any meaning without its underyling file
reference, as it can't be built.
In this commit, when a file reference is removed, in addition to the
previouls file reference removal logic, the build files that refer to
the file references are removed as well.
`PBXReferenceProxy` and `PBXGroup`  might have build files that refer
to them, and as mentioned in the previous commit, they don't have any
meaning without it. Therefore everything that can be a `PBXBuildFile`'s
`file_ref` removes the build files that refer to it when being removed.
@byohay byohay changed the title file reference: Remove build files when underlying file_ref is removed. Remove build files when underlying file_ref is removed. Dec 16, 2021
@byohay byohay force-pushed the feature/file-reference-remove-build-files branch from 231eb4e to 505e696 Compare December 16, 2021 14:33
@byohay
Copy link
Contributor Author

byohay commented Dec 16, 2021

@dnkoutso done :)

@dnkoutso dnkoutso merged commit 14c3954 into CocoaPods:master Dec 16, 2021
@dnkoutso
Copy link
Contributor

thanks!

@byohay
Copy link
Contributor Author

byohay commented Mar 1, 2022

@dnkoutso any change to cut a release soon? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants