How can I delete all unreferenced files in an Xcode project?

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).

+7
reference delete-file xcode
source share

No one has answered this question yet.

See related questions:

2769
Delete a file from the Git repository without deleting it from the local file system
1848
Delete a file or folder
1348
How to "add existing frames" in Xcode 4?
1276
How to disable ARC for a single file in a project?
981
How to download Xcode DMG or XIP file?
818
Git ignore file for Xcode projects
576
How can I highlight multiple lines in Xcode?
122
Xcode modifies unmodified storyboard and XIB files
nine
Unable to execute Xcode project with Git integration
one
Xcode: remove the link to files that are not displayed as an option

All Articles