PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 10, 2022

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

 July 10, 2022     delete-file, reference, xcode     No comments   

Issue

I added a bunch of files at different times to my project then later deleted them, and I forgot to make Xcode trash the files in addition to the references. Since Xcode doesn't store the grouped files in separate directories, I now have hundreds of files and folders all together in my project directory, and it would be a pain to sift through and take out the ones I don't want.

I'm using Xcode 5. How do I make it automatically delete all files in my project directory that aren't actually part of the project? Note: I am not referring to files referenced in my source code, just the Xcode project itself.

I had the idea of using the built-in git functionality to solve this by pushing the project to Github, deleting the local copy, then cloning it back. But apparently, removing referenced files in Xcode won't prevent them from being committed. If there's some option to make Xcode only include referenced files in the git repository, that would work too (even though it's a hack workaround).


Solution

AFAIK, there are no trivial way to find unreferenced files in an Xcode project.

I wrote a tool to do it though.



Answered By - Frizlab
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing