-
Notifications
You must be signed in to change notification settings - Fork 463
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
Remove build files when underlying file_ref
is removed.
#861
Conversation
6269f59
to
7450dc3
Compare
7450dc3
to
7253a62
Compare
file_ref
is removed.
688994f
to
231eb4e
Compare
Hi @byohay thanks for this PR! Can you rebase on latest master please and place the CHANGELOG entry in the appropriate spot? |
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. |
There was a problem hiding this comment.
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.
file_ref
is removed.file_ref
is removed.
231eb4e
to
505e696
Compare
@dnkoutso done :) |
thanks! |
@dnkoutso any change to cut a release soon? 🙏 |
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
.