| Crates.io | pod-tree |
| lib.rs | pod-tree |
| version | 0.1.0 |
| created_at | 2025-12-18 07:16:50.807798+00 |
| updated_at | 2025-12-18 07:16:50.807798+00 |
| description | Display a dependency tree from a CocoaPods Podfile.lock, similar to cargo tree. |
| homepage | |
| repository | https://github.com/Binlogo/pod-tree |
| max_upload_size | |
| id | 1991880 |
| size | 43,749 |
Display a tree visualization of a CocoaPods Podfile.lock dependency graph, similar to the cargo tree command.
pod-tree parses your Podfile.lock and prints a text-based tree of your pods and their dependencies.
Currently, it supports limiting the depth and viewing (reverse) dependencies of a specific pod. Which is mostly I used with cargo tree.
Install from crates.io:
cargo install pod-tree
Build from source:
git clone https://github.com/Binlogo/pod-tree.git
cd pod-tree
cargo install --path .
Run pod-tree in the directory containing your Podfile.lock:
pod-tree
By default this reads Podfile.lock in the current directory and prints the full dependency tree.
--lockfile <LOCKFILE> – Path to the Podfile.lock file (default: Podfile.lock).--depth <DEPTH> – Maximum display depth of the dependency tree (1 = direct dependencies).-i, --invert – Show reverse dependencies for the given package.PACKAGE (positional) – Package to focus on (shows only its tree; with --invert shows reverse dependencies).These options are implemented in the CLI parser in src/main.rs:11-30.
Show the full dependency tree from Podfile.lock:
pod-tree
pod-tree --lockfile examples/OnionBrowser/Podfile.lock
Podfile.lock
├── DTFoundation/DTASN1 (1.7.19)
│ └── DTFoundation/Core (1.7.19)
├── Eureka (5.5.0)
├── FavIcon (3.1.0)
├── ImageRow (4.1.0)
│ └── Eureka (5.5.0)
├── IPtProxyUI (4.9.2)
│ ├── Eureka (5.5.0)
│ ├── IPtProxy (4.2.2)
│ └── IPtProxyUI/App (4.9.2)
│ ├── Eureka (5.5.0)
│ ├── IPtProxy (4.2.2)
│ └── ProgressHUD (14.1.1)
├── MBProgressHUD (1.2.0)
├── OCMock (3.9.4)
├── OrbotKit (1.2.0)
├── SDCAlertView (12.0.5)
├── SwiftSoup (2.7.6)
├── Tor/GeoIP (408.21.1)
│ └── Tor/CTor (408.21.1)
│ └── Tor/Core (408.21.1)
└── TUSafariActivity (1.0.4)
Show only the subtree for a specific pod:
pod-tree --lockfile examples/OnionBrowser/Podfile.lock IPtProxyUI
Podfile.lock
└── IPtProxyUI (4.9.2)
├── Eureka (5.5.0)
├── IPtProxy (4.2.2)
└── IPtProxyUI/App (4.9.2)
├── Eureka (5.5.0)
├── IPtProxy (4.2.2)
└── ProgressHUD (14.1.1)
Limit the depth to direct dependencies only:
pod-tree --lockfile examples/OnionBrowser/Podfile.lock IPtProxyUI --depth 2
Podfile.lock
└── IPtProxyUI (4.9.2)
├── Eureka (5.5.0)
├── IPtProxy (4.2.2)
└── IPtProxyUI/App (4.9.2)
Show reverse dependencies of a specific pod:
pod-tree --lockfile ./examples/wikipedia-ios/Podfile.lock AFNetworking/NSURLSession -i
Podfile.lock
└── AFNetworking/NSURLSession (3.1.0)
├── AFNetworking/UIKit (3.1.0)
│ └── AFNetworking (3.1.0)
└── AFNetworking (3.1.0)
MIT