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. ;)
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With