Saltar al contenido

Existing Xcode project

Keep your existing Xcode project or workspace and add Tuist capabilities one at a time. Project generation is optional for compilation caching, build insights, and test insights.

What you can add#

The module cache is different: it replaces modules before a build and requires a generated project. You do not need it to use Xcode's compilation cache.

Adoption steps#

  1. Install the Tuist command-line interface on each developer machine and continuous integration environment that will use Tuist.
  2. Run tuist init in your project root. Choose the option to integrate the existing Xcode project or workspace, then authenticate and create or select the Tuist project.
  3. Start with one capability:
  4. When enabling a capability in continuous integration, follow the continuous integration authentication guide before running the build or test.

Verify your setup#

Verify the capability you selected before adding another one:

  • Compilation cache: Build the same revision in two clean environments with diagnostic remarks enabled. Confirm that the later build reports cache hits and that cache activity appears in the project's Xcode cache dashboard.
  • Build insights: Complete a build, open the project dashboard, and confirm that the build appears with its duration and targets.
  • Test insights: Complete a test run, open the project dashboard, and confirm that the run lists the executed tests and their results.

Once the first result appears, repeat the setup for teammates and continuous integration or continue with another capability above.