{"id":28125132,"url":"https://github.com/xing/pandan","last_synced_at":"2025-05-14T09:20:33.234Z","repository":{"id":56887333,"uuid":"85967891","full_name":"xing/pandan","owner":"xing","description":"Retrieve Xcode dependency information with ease","archived":false,"fork":false,"pushed_at":"2020-04-10T07:49:25.000Z","size":387,"stargazers_count":23,"open_issues_count":2,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-28T03:46:58.171Z","etag":null,"topics":["dependencies","graphviz","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-23T15:46:29.000Z","updated_at":"2025-02-06T00:41:57.000Z","dependencies_parsed_at":"2022-08-21T00:20:30.771Z","dependency_job_id":null,"html_url":"https://github.com/xing/pandan","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xing%2Fpandan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xing%2Fpandan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xing%2Fpandan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xing%2Fpandan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xing","download_url":"https://codeload.github.com/xing/pandan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110399,"owners_count":22016393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependencies","graphviz","xcode"],"created_at":"2025-05-14T09:20:20.552Z","updated_at":"2025-05-14T09:20:33.226Z","avatar_url":"https://github.com/xing.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pandan\n\n[![Build Status](http://img.shields.io/travis/xing/pandan/master.svg?style=flat)](https://travis-ci.org/xing/pandan)\n[![Gem Version](http://img.shields.io/gem/v/pandan.svg?style=flat)](http://badge.fury.io/rb/pandan)\n\n\u003e Pandanus amaryllifolius is a tropical plant in the Pandanus (screwpine) genus, which is commonly known as pandan leaves, and is used widely in South Asian and Southeast Asian cooking as a flavoring.  \n\u003e —[Wikipedia](https://en.wikipedia.org/wiki/Pandanus_amaryllifolius)\n\n`pandan` is a CLI tool that outputs dependency information from a set of Xcode projects with targets that depend on each other, it does it by creating a (reverse) dependency graph using the information in \"Link Binary with Libraries\" build phase and doing a breadth-first search.\n\n## Installation\n\n`pandan` is distributed as a Ruby gem and can be installed using the following command:\n\n```bash\n$ gem install pandan\n```\n\n## Motivation\n\nAt XING, CocoaPods helped us manage our Objective-C and Swift dependencies for a long time. But as our team grew, it was evident to us that CocoaPods was not the tool we needed anymore. We decided to migrate all our projects to a different setup that uses multiple Xcode projects, targets and xcconfig files under a single workspace. However, we were lacking a tool that would give us dependency information based one the settings already in place in Xcode.\n\n## Usage\n\nGiven the following project setup:\n\n![sample_setup](images/sample_setup.png)\n\nwhere additionally to this, SampleFrameworkD links against SampleFrameworkE:\n\n```bash\n$ pandan query SampleFrameworkB # will output:\nSampleFrameworkC\nSampleFrameworkE\nSampleFrameworkD\n```\n\nYou can generate a complete dependency graph of your workspace that is output as a PNG image. It's a good idea to exclude targets with names ending in \"Tests\" for a more tidy graph:\n\n```bash\n$ pandan dependency-graph --image --filter='^(?!.*Tests$).*$'\n```\n\n![sample_dependencies](images/sample_dependencies.png)\n\nFor a complete and up-to-date usage description, execute:\n\n```bash\n$ pandan --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxing%2Fpandan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxing%2Fpandan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxing%2Fpandan/lists"}