Skip to content

fix(ci): Xcode Cloud fails — Sudoku.xcworkspace not generated by Tuist #86

Closed

Description

@wei18

Symptom

Xcode Cloud build (#75 fixed mise; this is the next failure) fails at resolve_package_dependencies:

xcodebuild: error: '/Volumes/workspace/repository/Sudoku.xcworkspace' does not exist.

Build artifact logs: Sudoku Build 2 Logs for Sudoku archive.zip (provided by user 2026-05-22).

Root cause

The repo uses Tuist to generate the Xcode project on-demand. Sudoku.xcworkspace is not committed (it's gitignored — generated by tuist generate). Xcode Cloud's Run command: resolve_package_dependencies step assumes the workspace already exists.

Affected file

ci_scripts/ci_post_clone.sh — currently installs mise tools (incl. tuist) but never calls tuist install + tuist generate. The workspace is therefore absent when Xcode Cloud's resolve step runs.

Fix

Append after the gitleaks scan in ci_post_clone.sh:

# 3) Generate Xcode workspace via Tuist (repo doesn't commit .xcworkspace)
mise exec -- tuist install
mise exec -- tuist generate --no-open

--no-open because CI shouldn't try to launch Xcode.app.

Acceptance

  • Xcode Cloud advances past Resolve package dependencies
  • Sudoku.xcworkspace exists post-script
  • Build proceeds to compile

Out of scope

  • Switching off Tuist
  • Caching tuist plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions