Repository navigation
fix(ci): xcodebuild -resolvePackageDependencies after tuist generate (#96) - #98
Merged
Merged
Conversation
…96) Fixes #96. Build #9 failed: xcodebuild: error: Could not resolve package dependencies: a resolved file is required when automatic dependency resolution is disabled Running resolver because: 'swift-package-manager-google-mobile-ads' was added Tuist disables automatic resolution; workspace has no Package.resolved (generated, gitignored). Run explicit xcodebuild -resolvePackageDependencies with -onlyUsePackageVersionsFromResolvedFile NO to allow first-fetch. bash -n OK. Closes #96. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced May 22, 2026
Closed
wei18
added a commit
that referenced
this pull request
May 22, 2026
Build #10 (after PR #98) failed: Could not resolve package dependencies: Running resolver because: 'swift-snapshot-testing' was added PR #98's -scheme Sudoku limited resolve to app-target deps; snapshot- testing is a SudokuKit test-target dep. Drop -scheme for workspace-wide resolve. bash -n OK. Closes #99. Co-authored-by: Claude Opus 4.7 <[email protected]>
This was referenced May 23, 2026
Closed
wei18
added a commit
that referenced
this pull request
May 23, 2026
…105) Per Tuist 4 design (post #6823, Oct 2024): when a project's external SwiftPM deps live transitively inside local Package.swift packages (our case — AdMob/UMP/snapshot-testing all pulled via Packages/ SudokuKit/ + Packages/AppMonetizationKit/), Tuist generates the canonical .package.resolved file at the **project root** and symlinks Sudoku.xcworkspace/xcshareddata/swiftpm/Package.resolved → /<repo>/.package.resolved. The file is intentionally NOT gitignored — commit it so Xcode Cloud's xcodebuild finds the resolved file via the symlink (which Tuist regenerates on every `tuist generate`). This is the proper Tuist 4 fix for #104, NOT a ci_post_clone.sh patch. Previous PRs #98/#100 added explicit `xcodebuild -resolvePackageDependencies` in block 3.3 as a fallback — kept as safety net for fresh-checkout edge cases but no longer the primary mechanism. Closes #104. Investigation: - tuist install help: no SwiftPM resolve when no Tuist/Package.swift - tuist generate flags: no skip-resolution option - Tuist PR #6823: bug fix that landed Oct 2024 — generates root .package.resolved for transitive-only-remote-dep projects - Local verification: tuist generate creates symlink correctly Co-authored-by: Claude Opus 4.7 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #96. Adds explicit
xcodebuild -resolvePackageDependencieswith-onlyUsePackageVersionsFromResolvedFile NOaftertuist generate, so AdMob/UMP SDKs can fetch on the first build (Tuist disables automatic resolution; workspace Package.resolved is gitignored).bash -nOK.§未決 (deferred):
SourcePackages/between builds (likely already retained within workflow)