asimov icon indicating copy to clipboard operation
asimov copied to clipboard

Exclude derived data folders from from Xcode

Open mdab121 opened this issue 3 years ago • 2 comments

mdab121 avatar Dec 19 '20 16:12 mdab121

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.

mdab121 avatar Dec 22 '20 11:12 mdab121

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.

stevegrunwell avatar Dec 30 '20 02:12 stevegrunwell