You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 40c43b9
Browse filesBrowse the repository at this point in the historyBrowse files
[iOS][SPM] Stop re-creating library package roots on every sync
Autolinking writes one symlink per self-managed library into
build/generated/autolinking/libs/<Name>, and Xcode holds each as a loaded
local package root. The generator deleted and re-created that whole tree on
every run, even when the generated output was byte-identical, so an Xcode
build failed with "Missing package product" for every such library.
The sync ran on every IDE build because its staleness check walked each
library's directory with `find -newer`, and Xcode writes its own per-user
scheme state under <lib>/.swiftpm. That write marked the next build stale,
which triggered the destructive re-sync, which broke that build.
Keep unchanged entries in place and prune only the ones that are no longer
autolinked, and skip .swiftpm when probing for changes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments