Skip to content

fix(ci): cd to repo root before tuist generate (#88) - #89

Merged
wei18 merged 1 commit into
mainfrom
fix/ci-tuist-cwd
May 22, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/ci-tuist-cwd

Conversation

@wei18

@wei18 wei18 commented May 22, 2026

Copy link
Copy Markdown
Owner

Fixes #88. Xcode Cloud invokes script from ci_scripts/ dir, so tuist couldn't find Project.swift at repo root. Add cd "${CI_PRIMARY_REPOSITORY_PATH:-$(dirname "$0")/..}" before tuist commands.

bash -n OK.

Closes #88.

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 — tuist generate runs in wrong cwd (ci_scripts/)

1 participant