Description
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 NODrops one line (-scheme Sudoku \) from the block 3.3 we added in PR #98.
Acceptance
- Build docs(design): backlog +1 — Android app via Swift SDK for Android #11 advances past
tuist generate - Subsequent xcodebuild build/test steps find both AdMob + swift-snapshot-testing
Out of scope
- Pre-committing
Sudoku.xcworkspace/xcshareddata/swiftpm/Package.resolved(workspace gitignored)
Activity
fix(ci): workspace-wide package resolve (closes #99) (#100)