Skip to content
forked from tuist/tuist

πŸš€ Create, maintain, and interact with Xcode projects at scale

License

Notifications You must be signed in to change notification settings

ollieatkinson/tuist

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

code style: prettier CircleCI codecov Slack Say Thanks! Join the community on Spectrum

What's Tuist πŸ•Ί

Tuist is a command line tool that helps you generate, maintain and interact with Xcode projects.

It's open source and written in Swift.

Defining your projects πŸ’Ό

With Tuist, projects are defined in a Project.swift, also known as manifest. The manifest format abstracts you from the implementation details of Xcode projects. In your manifest you can define which targets your project has, which sources and resources belong to them, as well as the dependencies with targets in the same and other projects. The advantages of defining the projects in a manifest are:

  • It can catch misconfigurations and fail early. For example, if a target has an invalid dependency, it’ll let you know before you start compiling the app.
  • Since the manifest doesn’t include Xcode implementation details, the likelihood of having git conflicts is significantly lower.
  • It makes the configuration easier. The decision on how the project looks is on you. Tuist processes it and manages the complexity for you. One example of that complexity is setting up dependencies between targets.

The example below shows how projects are defined with Tuist:

import ProjectDescription

let project = Project(name: "App",
                      targets: [
                        Target(name: "App",
                               platform: .iOS,
                               product: .app,
                               bundleId: "io.tuist.App",
                               infoPlist: "Info.plist",
                               sources: "Sources/**",
                               dependencies: [
                                    /* Target dependencies can be defined here */
                                    /* .framework(path: "framework") */
                                ]),
                        Target(name: "AppTests",
                               platform: .iOS,
                               product: .unitTests,
                               bundleId: "io.tuist.AppTests",
                               infoPlist: "Tests.plist",
                               sources: "Tests/**",
                               dependencies: [
                                    .target(name: "App")
                               ])
                      ])

Although we encourage defining the manifests in Swift, Tuist also supports JSON and Yaml formats.

Interacting with your projects πŸ™‡β€β™€οΈ

Tuist leverages project generation to provide a simple and convenient set of commands, standard across all the projects. The commands infer most of the necessary information from your projects, requiring you to pass only the arguments that are strictly necessary.

Having a standard command line interface makes it easier to jump between projects since there’s an interaction language everyone in the team is familiar with.

  • πŸ‘©β€πŸ’» Init: Bootstraps a new project. You can specify the platform and the type of project and it’ll generate all the necessary artifacts (Info.plist, AppDelegate, Project.swift, Playgrounds…).
  • πŸ’« Generate: Generates the Xcode workspace and projects to work on a particular project.
  • πŸ“¦ Build: (Not available yet) Builds the project in the current directory. It supports all the arguments that xcodebuild supports.
  • βœ… Test: (Not available yet) Test the project in the current directory. It supports all the arguments that xcodebuild supports.
  • πŸ“± Run: (Not available yet) Runs the project. If the project needs a device to run on, it’ll prompt you to select one.
  • πŸš€ Release: (Not available yet) Builds and publishes your project on iTunes Connect.

The list of actions will likely grow as we get feedback from you.

Install ⬇️

Running script:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/tuist/install/master/install)"

Bootstrap your first project πŸŒ€

tuist init --platform ios --product application
tuist generate # Generates Xcode project

Check out the project "Getting Started" guide to learn more about Tuist and all its features.

Setup for development πŸ‘©β€πŸ’»

  1. Git clone: [email protected]:tuist/tuist.git
  2. Generate Xcode project with swift package generate-xcodeproj.
  3. Open tuist.xcodeproj.
  4. Have fun πŸ€–

Shield

If your project uses Tuist, you can add the following badge to your project README:

Tuist Badge

[![Tuist Badge](https://img.shields.io/badge/powered%20by-Tuist-green.svg?longCache=true)](https://github.com/tuist)

Backers

Become a backer and show your support to our open source project.

Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer

Sponsors

Does your company use Tuist? Ask your manager or marketing team if your company would be interested in supporting our project. Support will allow the maintainers to dedicate more time for maintenance and new features for everyone. Also, your company's logo will show on GitHub and on our site - who doesn't want a little extra exposure? Here's the info

Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer Tuist Backer

Open source

Tuist is a proud supporter of the Software Freedom Conservacy

Become a Conservancy Supporter!

About

πŸš€ Create, maintain, and interact with Xcode projects at scale

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.0%
  • Ruby 0.4%
  • JavaScript 0.2%
  • Shell 0.1%
  • Makefile 0.1%
  • Objective-C 0.1%
  • Gherkin 0.1%