Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

፨ A Swift Package with data structures to model Xcode workspaces and projects

License

NotificationsYou must be signed in to change notification settings

tuist/XcodeGraph

Repository files navigation

All Contributors

XcodeGraph is a Swift Package that contains data structures to model an Xcode projects graph.It was initially developed as part ofTuist and extracted to be Tuist-agnostic.

Note

We extracted the graph data structures from Tuist to commoditize them and make them available to other projects that might need to model and generate Xcode projects.

Installation

To installXcodeGraph, you can add it to your project or package'sPackage.swift:

letpackage=Package(    dependencies:[.package(url:"https://github.com/tuist/XcodeGraph.git",.upToNextMajor(from:"0.7.0")),],)

XcodeGraphMapper

XcodeGraphMapper parses.xcworkspace or.xcodeproj files usingXcodeProj and constructs aXcodeGraph.Graph representing their projects, targets, and dependencies:

Usage

import XcodeGraphMapperletmapper:XcodeGraphMapping=XcodeGraphMapper()letpath=tryAbsolutePath(validating:"/path/to/MyProjectOrWorkspace")letgraph=tryawait mapper.map(at: path)// You now have a Graph containing projects, targets, packages, and dependencies.*// Example: print all target names across all projects*forprojectin graph.projects.values{for(targetName, _)in project.targets{print("Found target:\(targetName)")}}

Once you have the Graph, you can explore or transform it as needed—printing targets, analyzing dependencies, generating reports, or integrating into other build tools.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Dariusz Rybicki
Dariusz Rybicki

💻
Binlogo
Binlogo

💻
Filip Racki
Filip Racki

💻
Gabriel Liévano
Gabriel Liévano

💻
Giovanni Filaferro
Giovanni Filaferro

💻
Anton Kolchunov
Anton Kolchunov

💻

This project follows theall-contributors specification. Contributions of any kind welcome!

About

፨ A Swift Package with data structures to model Xcode workspaces and projects

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp