I'm working on a custom log file viewer and would like to add a way to jump to a specific line in a source file in Xcode.
Is there a way to have Xcode reveal a given source file of the active project and jump to a given line number?
Maybe there is a custom URL scheme that I could use?
Instruments can do this (reveal a file in Xcode) so there must be a way for Instruments and Xcode to communicate.
I just searched for the same thing and found this discussion on the Apple forums. The gist of it is that you can use the command line tool
xedthat ships with Xcode like so:Running
man xedgives this description of the tool:It also mentions this option I used above: