This is the accompanying sample code containing simple project.yml to generate Xcode project on-demand.
Steps:
- Open iTerm (or Terminal.app) and install Homebrew (you can skip installing Homebrew if it already installed).
- Install XcodeGen via
brew install xcodegencommand. - Since this project demonstrates Carthage integration with XcodeGen, install Carthage first.
- Clone this repository and
cdto its root folder. - Run
carthage update. - Run
xcodegen(orxcodegen generateon newest version) to generate the main project file (.xcodeproj). - Open the project file from Finder or
open SwiftyApp.xcodeprojcommand. - Wait for Xcode to launch, then Build and Run.
Feel free to contact me on mailtaufik at gmail dot com if you find any issues or seek more advanced Xcodegen usages.