How do I remove the DerivedData folder from my Xcode's repo, and how do I permanently prevent it from including it in the commits?
Xcode 3 didn't have this problem. Started with Xcode 4.1.
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch DerivedData/'
(for folders)
git filter-branch --index-filter 'git rm --cached --ignore-unmatch filename_here'
(for files)
Delete Derived DataChoose Window -> Organizer. Select the Projects tab. Select your project on the left. Next to the Derived Data line, there click the Delete button.
Derived data is new data created by combining and processing existing raw data. Derived data can be created from observational, experimental, and simulation data – but not previously derived data.
Using Mac Finder b) Go to the Xcode -> Location, Go to derived data and click the arrow which will take you to the derived data folder. Go to Developer -> Xcode -> Derived Data and feel free to delete the contents of the derived data folder.
If you want to remove the folder from your previous history you can follow Github's guide to removing sensitive data.
If you just want to remove it from here on out, you can remove it from the repo withgit rm -r --cached folderName/
Then, add the following line to a file called .gitignore
in your root directoryfolderName
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With