Oh wow I didn’t know this was still Obj-C only. That’s crazy. Sorry to waste your time.
Oh no worries, it was worth a try and it only took 10 seconds

[doublepost=1510535311][/doublepost]I understand that analyzing symbols is not trivial, but I don't see why it can't at least do simple text-based reference matching ? It should be able to detect the most simple cases of symbols not being used, regardless of whether the code is written in Swift, Obj-C, Japanese, or Russian.
What I mean is ... let's say there's a class called "MyClass" and if I do a simple text search for MyClass in my project, there are no results (other than where it is defined), it
could indicate that it is not being used. So, the XCode analyzer could at least do a text search, and provide a warning, not with certainty, but pointing to the
possibility that a symbol is not being referenced. The developer could then investigate the warning and determine if the warning is false or not.
Why would this be a good way to point out
potentially unused classes/functions ? Because, that is exactly how I find dead code myself

I do a very simple text search, and in most cases, if not all, it works
"
Class "MyClass" possibly not being referenced"