Xcode > Preferences.. 

 Text Editing

Show

Line Number   <-  check

Posted by tenn
,