Xcode find caller functions

Viewed 46137

In Xcode, how can I find all caller functions of a specific function?

10 Answers

Xcode 10 upwards seems to have made it easier. Just Command Click on the function and you should see it in the drop down.

enter image description here

Use Find in Project as Text or as Symbol.

AFAIK, there's no equivalent to e.g. Call Hierarchy known from Eclipse or NetBeans.

Strangely the refactoring tool can detect all method calls but not the search.

So I simply use it to rename my method to a unique name (eg. reset to resetPlayer) and then use the new name in a regular textual search.

1.) Menu > Edit > Refactor... > Rename to unique name

2.) search for the new name

Related