Xloc is a native macOS app that lets you easily count lines of code in source files. Simply drag and drop a folder or a single source file to get started -- no need to open Terminal.
Once analysis completes, Xloc will show you results broken down by programming language. We support everything from native languages like Objective-C and C# to web languages such as PHP and TypeScript.
You can even exclude "trivial" lines of code that only include comments and whitespace. Xloc is the best app for counting lines of code on the Mac.