I added a bunch of files at different times to my project and then deleted them, and I forgot to make Xcode junk files in addition to links. Since Xcode does not store grouped files in separate directories, now I have hundreds of files and folders in my project directory, and it would be painful to sift and take out the ones I don't need.
I am using Xcode 5. How do I automatically delete all files in my project directory that are not actually part of the project? Note. I do not mean the files mentioned in my source code, only the Xcode project itself.
I had an idea to use the built-in git functionality to solve this problem by pushing a project on Github, deleting a local copy and then cloning it. But, apparently, deleting the referenced files in Xcode will not prevent them from being committed. If there is some opportunity to make Xcode, only the included link files in the git repository, this will work (even if it is a workaround).
reference delete-file xcode
sudo
source share