asimov
asimov copied to clipboard
Exclude derived data folders from from Xcode
Hey!
Thanks for the response. You're right, that the DerivedData
folder (which is basically build artifacts, indexes, etc) are located at ~/Library/Developer/Xcode/DerivedData
by default.
However it's very common to have it in the project directory. I do that as an iOS developer, and I know many other devs that do. That's why it's also listed in the default .gitignore
for XCode.
It's really a time machine killer, because these tend to be ~1GB even for a simple XCode project.
What i can suggest is to make it conditional to exclude DerivedData
unless an XCode project file exists in the directory? Which would be anything like *.xcodeproj
.
What i can suggest is to make it conditional to exclude
DerivedData
unless an Xcode project file exists in the directory? Which would be anything like*.xcodeproj
.
I think that makes the most sense, but it'll require refactoring how the find
command is utilized within Asimov, as test -e
checks for the existence of a file, but doesn't account for wildcards.
We want to make sure that whatever we do here is still performant, but adding wildcard support would open up some opportunities.