A helper to find unreferenced files in an Xcode project.
You can install the project via Homebrew with:
brew install frizlab/perso/find-unreferenced-xcode-files
project_name=MyAwesomeProject
find . \
\( -name "*.swift" -o -name "*.h" -o -name "*.m" -o -name "*.c" \) \
-a ! -path "*/.git/*" \
-a ! -path "*/Carthage/*" \
-print0 | \
find-unreferenced-xcode-files -0 "./$project_name.xcodeproj/project.pbxproj"