Skip to content

fix(spm): drop stale Package.resolved for non-root Swift packages - #87

Open
Brazol wants to merge 1 commit into
mainfrom
fix/stale-package-resolved
Open

fix(spm): drop stale Package.resolved for non-root Swift packages#87
Brazol wants to merge 1 commit into
mainfrom
fix/stale-package-resolved

Conversation

@Brazol

@Brazol Brazol commented Sep 8, 2026

Copy link
Copy Markdown

Package.swift pins stream-video-swift-webrtc at exact: "145.17.0", but every committed lock file disagreed with it:

Package.resolved 145.9.0
ios/stream_webrtc_flutter/Package.resolved 145.6.0
macos/stream_webrtc_flutter/Package.resolved 145.6.0
example/ios//Package.resolved 145.16.0
example/macos/
/Package.resolved 145.9.0

SwiftPM ignores the lock of a non-root package, so the first three never affected what a consuming app resolved - they were pure drift, and they get published to pub.dev where integrators find them. Chasing a customer's "no versions of 'stream-video-swift-webrtc' match the requirement 145.17.0" report, these files were the first thing that looked like a cause and cost real time to rule out.

Remove them and add .gitignore rules so they don't come back. The example apps' locks are root-level and stay tracked, refreshed to 145.17.0.

`Package.swift` pins `stream-video-swift-webrtc` at `exact: "145.17.0"`, but
every committed lock file disagreed with it:

  Package.resolved                              145.9.0
  ios/stream_webrtc_flutter/Package.resolved    145.6.0
  macos/stream_webrtc_flutter/Package.resolved  145.6.0
  example/ios/**/Package.resolved               145.16.0
  example/macos/**/Package.resolved             145.9.0

SwiftPM ignores the lock of a non-root package, so the first three never
affected what a consuming app resolved - they were pure drift, and they get
published to pub.dev where integrators find them. Chasing a customer's
"no versions of 'stream-video-swift-webrtc' match the requirement 145.17.0"
report, these files were the first thing that looked like a cause and cost
real time to rule out.

Remove them and add .gitignore rules so they don't come back. The example
apps' locks are root-level and stay tracked, refreshed to 145.17.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: ae0dc541-1e0a-4150-b576-ad95c3432e32


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant