How to find out how many lines of code there are in an Xcode project?

前端 未结 15 1641
闹比i
闹比i 2020-11-30 16:32

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 purp

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 16:53

    Sorry for repeating. That's the easiest way IMHO:

    1. In terminal type

    find /users/<#username#>/documents/folderWithProject/ -type f -exec cp {} /users/<#username#>/documents/folderWithProject/newFolder/ \;

    This will copy all files from project folder to newFolder.

    1. Download Xcode Statistician and use it with newFolder

提交回复
热议问题