Installing
Make sure the latest stable (non-beta) version of Xcode is installed first.
Mint
mint install yonaskolb/xcodegen
Make
git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
make install
Homebrew
brew install xcodegen
Swift Package Manager
Use as CLI
git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
swift run xcodegen
Use as dependency
Add the following to your Package.swift file’s dependencies:
.package(url: "https://github.com/yonaskolb/XcodeGen.git", from: "2.41.0"),
And then import wherever needed: import XcodeGenKit
Dependency Diagrams
Click to expand!
#### How to export dependency diagrams: To stdout: ``` xcodegen dump --type graphviz ``` To a file: ``` xcodegen dump --type graphviz --file Graph.viz ``` During implementation, `graphviz` formatting was validated using [GraphvizOnline](https://dreampuf.github.io/GraphvizOnline/), [WebGraphviz](http://www.webgraphviz.com), and [Graphviz on MacOS](https://graphviz.org).Editing
git clone https://github.com/yonaskolb/XcodeGen.git
cd XcodeGen
swift package generate-xcodeproj
This uses Swift Package Manager to create an xcodeproj
file that you can open, edit and run in Xcode, which makes editing any code easier.
If you want to pass any required arguments when running in Xcode, you can edit the scheme to include launch arguments.
Alternatives
If XcodeGen doesn’t meet your needs try these great alternatives:
Attributions
This tool is powered by:
Inspiration for this tool came from:
Contributions
Pull requests and issues are always welcome. Please open any issues and PRs for bugs, features, or documentation.