PaulTaykalo / objc-dependency-visualizer

Objective-C and Swift dependency visualizer. It's tool that helps to visualize current state of your project. It's really easy to see how tight your classes are coupled.
MIT License
1.84k stars 98 forks source link

Visualize dependencies in development pod #64

Open frouo opened 4 years ago

frouo commented 4 years ago

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
  5. git clone https://github.com/PaulTaykalo/objc-dependency-visualizer.git
  6. cd objc-dependency-visualizer
  7. ./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