objective c - How to find and remove unused class files from a project -
my xcode project has grown somewhat, , know there class files in there no longer being used. there easy way find of these , remove them?
if class files sit in project without being part of target, click on project in tree view, see files in table. make sure see "target" column in table view, iterate through targets , find files don't have check anywhere -> no longer compiled.
but if still compile classes , no longer used, case bit more difficult. check out project
http://www.karppinen.fi/analysistool/#dependency-graphs
you create dependency graph , try find orphaned classes way.
edit: link went dead, there still seem projects of objective-c dependency graphs around, example https://github.com/nst/objc_dep
Comments
Post a Comment