Skip to content

fix(ci): tuist generate in ci_post_clone.sh for Xcode Cloud (#86) - #87

Merged
wei18 merged 1 commit into
mainfrom
fix/ci-xcode-cloud-tuist-generate-2
May 22, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/ci-xcode-cloud-tuist-generate-2

Conversation

@wei18

@wei18 wei18 commented May 22, 2026

Copy link
Copy Markdown
Owner

Fixes #86. Build #2 (post mise bootstrap fix #76) failed at resolve_package_dependencies — Tuist-generated Sudoku.xcworkspace was missing. Append tuist install + tuist generate --no-open to the post-clone script.

bash -n clean.

Closes #86.

Fixes #86. PR #76 fixed mise bootstrap; build #2 then hit:
  xcodebuild: error: '/Volumes/workspace/repository/Sudoku.xcworkspace'
  does not exist.

Repo uses Tuist; .xcworkspace is gitignored. Append `tuist install` +
`tuist generate --no-open` after the gitleaks block so the workspace
exists before Xcode Cloud's resolve_package_dependencies step.

bash -n: OK.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@wei18
wei18 merged commit 8cb5114 into main May 22, 2026
@wei18
wei18 deleted the fix/ci-xcode-cloud-tuist-generate-2 branch May 22, 2026 11:21
wei18 added a commit that referenced this pull request May 22, 2026
…) (#89)

Fixes #88. Build #3 (after #87 added tuist generate) failed:
  Manifest not found at path /Volumes/workspace/repository/ci_scripts

Xcode Cloud invokes the script as `cd ci_scripts && ./ci_post_clone.sh`
so tuist's cwd was ci_scripts/. Project.swift lives at repo root.

Use $CI_PRIMARY_REPOSITORY_PATH (Xcode Cloud env var) with
$(dirname "$0")/.. fallback for local dry-runs.

bash -n: OK.

Co-authored-by: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant