Any tools for dependency analysis or symbol graph analysis of code base?

I need to understand the current structure of an application code base with a goal of potentially placing different areas of the code into separate new modules. I'm looking for a dependency analysis tool or symbol graph tool to use on an application code base to understand what the current structure is. Alternatively, some build artifact Xcode (or something similar) generates could work. It would ideally provide some parsable format (JSON) or a format that works with visualization tools like graphviz. SourceKitten looks like a reasonable place to start for such a tool. Are there any other such tools or something different that could work?

I wrote a small command line utility some time ago that would produce a component dependency graph using sourcekitten, outputting graphviz/dotty.

Source at https://compositorapp.com/tmp/runtastic-iphone-tools-swiftgraph.zip

Terms of Service

Privacy Policy

Cookie Policy