objc-dependency-visualizer
objc-dependency-visualizer copied to clipboard
Visualize dependencies in development pod
Hi, I would like to visualize dependencies in a swift pod. Is there a way?
I tried:
-
pod lib create HelloLib
, choose Swift -
cd HelloLib
-
open Example/HelloLib.xcworkspace
- 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
-
git clone https://github.com/PaulTaykalo/objc-dependency-visualizer.git
-
cd objc-dependency-visualizer
-
./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