Fixing a scenario when someone sets DERIVED_FILE_DIR to $(SRCROOT)/.build/BuckOutput. Then, a derived files would classify that as a source instead of .derivedFile (see testSkipsCustomizedDerivedDirFileUnderSources)
Minor: only *-Swift.h files in DerivedFilse were not included in a dependency list. I don't see a reason why to be so strict and not skip all potential "internal" dependencies that are placed there. So far I don't know any other files that could be generated there but in the future, Xcode may generate there something else than -Swift.h.
121 follow-up
$(SRCROOT)/.build/BuckOutput
. Then, a derived files would classify that as a source instead of.derivedFile
(seetestSkipsCustomizedDerivedDirFileUnderSources
)*-Swift.h
files inDerivedFilse
were not included in a dependency list. I don't see a reason why to be so strict and not skip all potential "internal" dependencies that are placed there. So far I don't know any other files that could be generated there but in the future, Xcode may generate there something else than -Swift.h.