Doesn’t Xcode print line numbers? I can’t find it!
Yep - from the Xcode main menu click Xcode\Preferences, then switch to the Text Editing tab and click Line Numbers:
Hope this helps!