Back to skills
iOS & macOS DevelopmentMarkdown

swiftfindrefs

Use swiftfindrefs (IndexStoreDB) to list every Swift source.

Installs

1.6K

Stars

1

Forks

0

Updated

Feb 26, 2026

Install command

clawhub install michaelversus/swiftfindrefs

What it does

swiftfindrefs queries Xcode's IndexStore (DerivedData) to return every Swift source file that references a given symbol. It covers classes, structs, enums, protocols, functions, and variables across modules. Output is one absolute file path per line, deduplicated and safe to pipe.

Why it's useful

grep and IDE search operate on text and miss references that the compiler resolved through type inference or module re-exports, while IndexStoreDB reflects what was actually compiled.

Use cases

Finding all callers of a function before renaming it
Auditing files affected by moving a type to a new module
Adding missing imports only to files that reference a relocated symbol
Confirming a symbol is unused before deleting it
Scoping a cross-module refactor to exactly the files that matter

Community reviews

Comments from operators using this skill

0 comments

Log in to leave a review, rate the skill, and help the best community tools rise to the top.

Related skills

More in iOS & macOS Development

Browse all skills →