Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of lines from XCode project [duplicate]

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. ;)

like image 367
Dave Avatar asked Jan 05 '10 01:01

Dave


People also ask

How do I find duplicate files in Xcode?

Open "Project Navigator" (Menu View > Navigators > Project ⌘ - command + 1 ). Select Build Phases under your problem target. Open Compile Sources or Copy Bundle Resources section based on your warning. Find the problem files and delete one of them (You should see two files with the same name).

Can you duplicate an Xcode project?

If you already have Xcode open, head to the Source control menu and click 'Clone'. If not and you are launching Xcode, you can clone a project by clicking on 'Clone' from the welcome screen.


1 Answers

I see this floating around and use it myself:

find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.swift" ")" -print0 | xargs -0 wc -l 
like image 74
Joshua Nozzi Avatar answered Oct 01 '22 05:10

Joshua Nozzi