tags:

views:

560

answers:

3

Is there a way to determine how many lines of code an Xcode project contains? I promise not to use such information for managerial measurement or employee benchmarking purposes. ;)

+2  A: 

You can install SLOCCount through MacPorts. Or, more crudely, you can use wc -l.

anthony
+2  A: 

In terminal, change into the project directory and run:

find . -type f -print0 | xargs -0 cat | wc -l

If you want only certain file types, try something like

find . -type f -name \*.[ch]* -print0 | xargs -0 cat | wc -l
Andrew McGregor
+4  A: 

Check out CLOC.

Nathan Kinsinger