Skip to content

fix(ci): remove obsolete block 3.3 in ci_post_clone.sh (exit 64) #111

Closed

Description

@wei18

Symptom

XCC build #N (post #105 / #109) fails:

Running ci_post_clone.sh script failed (exited with code 64)
xcodebuild: error: If you specify a workspace then you must also specify a scheme.  Use -list to see the schemes in this workspace.

Root cause

ci_post_clone.sh block 3.3 (PR #100) calls:

xcodebuild -resolvePackageDependencies \
    -workspace Sudoku.xcworkspace \
    -clonedSourcePackagesDirPath ... \
    -onlyUsePackageVersionsFromResolvedFile NO

xcodebuild requires -scheme when -workspace is given. PR #100 dropped -scheme Sudoku thinking workspace-wide resolve would happen — but xcodebuild rejects the invocation outright.

Fix

Remove block 3.3 entirely. It was added in #98 as a defensive resolve before we understood Tuist 4's workspace Package.resolved symlink. Now that #105 commits .package.resolved at repo root, Tuist's internal resolution succeeds without explicit help, and the fallback block is dead code that breaks the script.

# Block 3.3 deleted — Tuist generate's internal resolve picks up the
# committed .package.resolved (#105) automatically.

Verify

  • bash -n ci_post_clone.sh OK
  • Local tuist generate still succeeds
  • Xcode Cloud build advances past ci_post_clone.sh

Out of scope

  • Re-adding explicit resolve with proper -scheme Sudoku (not needed; .package.resolved suffices)

Activity

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