objc-dependency-visualizer icon indicating copy to clipboard operation
objc-dependency-visualizer copied to clipboard

Visualize dependencies in development pod

Open frouo opened this issue 4 years ago • 0 comments

Hi, I would like to visualize dependencies in a swift pod. Is there a way?

I tried:

  1. pod lib create HelloLib, choose Swift
  2. cd HelloLib
  3. open Example/HelloLib.xcworkspace
  4. Add logic in Development Pod and use the lib in the demo app. For example, in Development Pod add:
  • public class HelloLib { let dummy = Dummy(); public func doNothing() { dummy.doNothing() }}
  • class Dummy { func doNothing() {}}
  • then, in AppDelegate, import HelloLib and call HelloLib().doNothing()
  • build the example app
  1. git clone https://github.com/PaulTaykalo/objc-dependency-visualizer.git
  2. cd objc-dependency-visualizer
  3. ./generate-objc-dependencies-to-json.rb -w -s "" > origin.js

Index.html shows (as expected) AppDelegate, ViewController and HelloLib but no sign of Dummy.

Regards

frouo avatar Mar 11 '20 17:03 frouo