The open source plugin for productivity metrics, goals, leaderboards, and automatic time tracking.
DownloadWakaTime for Mac.
MoveWakaTime.app into yourApplications folder, and runWakaTime.app.
If prompted, enter yourAPI Key then clickSave.
Use Xcode like normal and your coding activity will be displayed on yourWakaTime Dashboard.