Skip to content

SourceKitten support

Paul Taykalo edited this page Mar 7, 2017 · 2 revisions

As one of the inputs depviz supports SourceKitten output While in general dependency visualizer tends to show dependencies, SourceKitten output has rather inheritance graph. It still useful to show class/protocol inheritance, but it doesn't show any hidden dependecies or other classes usage.

Getting SourceKitten documentation JSON

Ensure you have SourceKitten properly installed and check its usage guide.

Example:

sourcekitten doc -- -workspace Awesome.xcworkspace -scheme Awesome > awesome.json
OR
sourcekitten doc

Passing SourceKitten JSON to dependency visualizer

./generate-objc-dependencies-to-json.rb -k awesome.json > origin.js

P.S.

Thanks for Swift Relationship Graph project for the sourcekitten idea