Overview
Thetuist setup command provides subcommands to configure various Tuist services and features in your development environment.
Usage
Subcommands
tuist setup cache
Sets up the Tuist Xcode cache for your project. This command prepares your project to use Tuist’s binary caching capabilities, which can significantly speed up build times.
Options
The path to the directory or a subdirectory of the project.
Short form of
--path.Example
Cache setup
The cache setup process:- Validates project structure: Ensures your project is compatible with caching
- Configures cache settings: Sets up necessary cache configurations
- Prepares storage: Initializes local or remote cache storage
- Generates metadata: Creates cache-related metadata files
Benefits of cache setup
- Faster builds: Reuse pre-compiled binaries instead of rebuilding unchanged targets
- Reduced CI time: Share cache artifacts across CI runs and developers
- Better iteration speed: Focus on changed code while using cached dependencies
- Team collaboration: Share cache artifacts with your team through Tuist Cloud
Cache profiles
After setting up cache, you can use different cache profiles:- simulator: Cache for simulator architectures
- device: Cache for device architectures
- all: Cache for all architectures
- none: Disable caching
- Custom profiles: Define your own in
Tuist.swift
Related commands
Once cache is set up, use these commands to work with the cache:- Cache warming:
tuist cache- Pre-populate the cache - Generation with cache:
tuist generate --cache-profile simulator - Building with cache:
tuist build(automatically uses cache)