• Stars
    star
    661
  • Rank 68,192 (Top 2 %)
  • Language
    Objective-C
  • License
    BSD 3-Clause "New...
  • Created almost 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ObjectGraph can show oriented graph of dependencies between classes in your project.

ObjectGraph

Twitter: @vampirewalk666

ObjectGraph can show oriented graph of dependencies between classes in your project. This plugin is based on objc_dep and Graphviz.

Screenshot

Example

  • Black arrows: imports
  • Red arrows: .pch imports
  • Blue arrows: two ways imports

Usage

The default path of source code parsing is project root path, you can set new path by clicking "Set Source Path Path...". For example, if you just want to parse your product class, not test class or external library class in Pods directory, you can set path to directory which contains your product class and execute "Draw Object Graph" again.

Install

First step, install Graphviz via Homebrew

brew install graphviz

or MacPorts

sudo port install graphviz

Second, install ObjectGraph-Xcode via Alcatraz or Clone and build the project, then restart Xcode.

Uninstall

Uninstall it via Alcatraz or

Run rm -r ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/ObjectGraph.xcplugin/

Thanks

Thanks to kattrali, I get inspiration and import some code from cocoapods-xcode-plugin.