This tool will list any source files that exist on the filesystem but aren't referenced by an Xcode project. This lets you quickly find files that should be deleted or have been erroneously excluded from your project.
Add this line to your application's Gemfile:
gem 'findxcprojorphan'
And then execute:
$ bundle
Or install it yourself as:
$ gem install findxcprojorphan
Suppose you have a project called RadProject.xcodeproj and source files inside RadProjectSrc. After installing the gem, simply run:
$ bundle exec findxcprojorphan RadProject.xcodeproj "RadProjectSrc/**/*.{m,swift}"
Note the quotes around the glob argument.
Viewing help is easy and fun:
$ bundle exec findxcprojorphan --help
- Fork it ( https://github.com/[my-github-username]/findxcprojorphan/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request