Skip to content
A tool to find and delete files that are missing from Xcode projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
.gitignore
.swiftlint.yml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE.md
Makefile
Package.resolved
Package.swift
README.md
RELEASING.md

README.md

xcodemissing

Swift Version GitHub release GitHub license

Build Statuscodecov.io

xcodemissing is a tool to find and delete files missing from your Xcode project.

It recursively searches through a path to find all of the path's Xcode projects and files, and will tell you which files do not exist in any of your Xcode projects. It can also filter by file extension to find only specific types of files.

Installation

Using a pre-built package:

You can install XcodeMissing by downloading XcodeMissing.pkg from the latest GitHub release and running it.

Compiling from source:

You can also build from source by cloning this project and running make install (Xcode 10.2 or later).

Quick Start

  • Find all Swift Files: xcodemissing find --extensions .swift

  • Find all Objective C Files: xcodemissing find --extensions .m,.h

  • Find all Swift & Objective C Files: xcodemissing find --extensions .m,.h,.swift

Usage

Help

$ xcodemissing help
Available commands:

   delete    Delete files that are not referenced in any Xcode projects
   find      Find files that are not referenced in any Xcode projects
   help      Display general or command-specific help
   version   Display the current version of xcodemissing

Find

Find Files Missing from Xcode in the Current Directory

xcodemissing find

Find Files In a Specific Path

xcodemissing find --path ~/MySweetSweetApp/

Find Only Files With a Certain Extension

xcodemissing find --extensions .swift

Find Only Files With Multiple Extensions

xcodemissing find --extensions .swift,.h,.m

Find Verbosely

xcodemissing find --verbose

Find Combined Usage

xcodemissing find --path ~/MySweetSweetApp/ --extension .swift,.h,.m --verbose

Delete

Delete Files Missing from Xcode in the Current Directory

xcodemissing delete

Delete Files In a Specific Path

xcodemissing delete --path ~/MySweetSweetApp/

Delete Only Files With a Certain Extension

xcodemissing delete --extensions .swift

Delete Only Files With Multiple Extensions

xcodemissing delete --extensions .swift,.h,.m

Delete Verbosely

xcodemissing delete --verbose

Delete Combined Usage

xcodemissing delete --path ~/MySweetSweetApp/ --extension .swift,.h,.m --verbose

License

xcodemissing is released under the MIT license.

You can’t perform that action at this time.