Hive Hive
Sign in

fix(cli): update swifterpm and add prebuilt runpaths

GitHub issue · Closed

Metadata
Source
tuist/tuist #11196
Updated
Jun 24, 2026
Domains
CLI Generated projects
Details

What changed

Updated the Tuist CLI dependency on tuist/swifterpm from 0.8.1 to 0.8.3.

Added LD_RUNPATH_SEARCH_PATHS for SwiftPM prebuilt library search paths so generated targets can load the prebuilt libraries at runtime.

Why

tuist/swifterpm released the dependency-resolution and workspace-state fixes Tuist needs across 0.8.2 and 0.8.3:

  • 0.8.2 refreshes stale binary artifact archives.
  • 0.8.3 preserves SwiftPM prebuilts in workspace state and sanitizes the prebuilt path fields.

The reproduced tuist install failure was no versions found for apple.swift-protobuf matching constraints; tuist install now resolves apple.swift-protobuf successfully with swifterpm 0.8.3.

I intentionally did not keep the Tuist-side path-sanitization fallback from the merged worktree because swifterpm 0.8.3 now owns that before writing workspace-state.json.

0.8.4 is the newest swifterpm tag, but it cannot currently be consumed by Tuist as a stable Swift package version because its manifest depends on swiftlang/swift-package-manager by revision. swift package resolve --replace-scm-with-registry rejects that combination for an exact version dependency, so this PR uses the latest swifterpm release that resolves in Tuist.

Impact

Tuist consumes the released swifterpm fixes through the exact package pin and resolved lockfile revision. tuist install can resolve and restore registry packages again, including apple.swift-protobuf. SwiftPM prebuilt targets also get a runtime search path for their prebuilt libraries.

Validation

  • swift package resolve --replace-scm-with-registry
  • tuist install
  • tuist generate tuist ProjectDescription --no-open
  • xcodebuild build -workspace Tuist.xcworkspace -scheme tuist CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
  • tuist generate TuistLoaderTests --no-open
  • xcodebuild test -workspace Tuist.xcworkspace -scheme TuistUnitTests -only-testing TuistLoaderTests/PackageInfoMapperTests CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
Comments
T
tuist[bot] Jun 9, 2026

🛠️ Tuist Run Report 🛠️

Previews 📦
App Commit
Tuist b73dd8070
Tests 🧪
Scheme Status Cache hit rate Tests Skipped Ran Commit
TuistAcceptanceTests 0 % 0 0 0 b73dd8070
TuistApp 80 % 28 0 28 3575169a2
TuistUnitTests 74 % 1835 28 1807 b73dd8070
Builds 🔨
Scheme Status Duration Commit
TuistAcceptanceTests 2m 50s b73dd8070
TuistApp 1m 56s b73dd8070
TuistUnitTests 2m 31s b73dd8070
Bundles 🧰
Bundle Commit Install size Download size
Tuist efae05c7f 20.7 MBΔ +413.9 KB (+2.04%) 15.3 MBΔ +211.6 KB (+1.41%)
TA
tuist-atlas[bot] Jun 11, 2026

This PR has been released in CLI 4.198.2. The swifterpm update and prebuilt runpaths fix are now available. Update to 4.198.2 to get these changes.