A Cocoapods plugin to create the dependency graph and help you manage dependencies in your project.
$ gem install cocoapods-dependency-graph
$ git clone [email protected]:sueLan/cocoapods-dependency-graph.git
$ cd cocoapods-dependency-graph
$ gem build cocoapods-dependency-graph.gemspec && gem install cocoapods-dependency-graph --user-install
- add
plugin
in thePodfile
plugin 'cocoapods-dependency-graph'
- run
pod install
- output files in the project folder
In the Podfile
, you can define dependency_output
to decide which kind of output file this plugin generates.
dependency_output :json
dependency_output :excel
dependency_output :graph
There are 3 symbols to control the output format. You can choose one of them. If you don't define dependency_output
, by default, this plugin generates png
and dot
file for dependency graph.
The following are output files you can generate:
-
#{target_label}_dependency_json.json
: JSON file for dependencies. You can view the json in any JSON becauty tool you like. -
#{target_label}_dependency_graph.png
: A png picture shows the dependency graph -
#{target_label}_dependency_graph.dot
: A dot file which represents the dependency graph. A site that can process the dot language. Or you can use Graphviz -
#{target_label}_dependency_list.xlsx
: xlsx file for dependency list.