Skip to content

fix(ci): Xcode Cloud — workspace-wide package resolve (snapshot-testing missing from #98) #99

Closed

Description

@wei18

Symptom

Build #10 (after PR #98 added explicit xcodebuild -resolvePackageDependencies) advances past AdMob resolve, then fails on a different package:

Could not resolve package dependencies:
  Running resolver because the following dependencies were added:
  'swift-snapshot-testing' (https://github.com/pointfreeco/swift-snapshot-testing)

Source: GitHub Checks API gh api repos/wei18/Sudoku/check-runs/<id> (Xcode Cloud reports build status as check-runs).

Root cause

PR #98's resolve targeted -scheme Sudoku which only includes the app target. swift-snapshot-testing is a SudokuKit test-target dependency — not in the Sudoku app scheme. Tuist's internal xcodebuild -list validation step (run during tuist generate) demands a fully-resolved workspace, including test schemes.

Fix

Drop the -scheme Sudoku from the resolve invocation so xcodebuild does a workspace-wide resolve (covers all schemes including test packages):

xcodebuild -resolvePackageDependencies \
    -workspace Sudoku.xcworkspace \
    -clonedSourcePackagesDirPath "${CI_DERIVED_DATA_PATH:-DerivedData}/SourcePackages" \
    -onlyUsePackageVersionsFromResolvedFile NO

Drops one line (-scheme Sudoku \) from the block 3.3 we added in PR #98.

Acceptance

Out of scope

  • Pre-committing Sudoku.xcworkspace/xcshareddata/swiftpm/Package.resolved (workspace gitignored)

Activity

  1. added a commit that references this issue on May 22, 2026
    3ae7e94
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