Skip to content

Instantly share code, notes, and snippets.

@wvteijlingen
Created December 1, 2021 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvteijlingen/37c4d214342a5d11bca722e5ae36180d to your computer and use it in GitHub Desktop.
Save wvteijlingen/37c4d214342a5d11bca722e5ae36180d to your computer and use it in GitHub Desktop.
# Very naive way of finding files that are in the filesystem but not added to an Xcode project
proj = File.read("path-to-project.pbxproj")
puts Dir.glob("./**/*.swift")
.map { |e| File.basename(e) }
.reject { |e| proj.include?(e) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment