xcodebuild re-resolves SwiftPM pins when two checkouts share SourcePackages
Building an Xcode app project from a second tree (for example a git-archive export of another commit, to compare warnings) with the same -clonedSourcePackagesDirPath as the main worktree made xcodebuild re-resolve every remote package to its newest allowed release and rewrite Package.resolved in the export, and on the next build in the worktree too, so the two builds silently used different dependency versions. Pass -onlyUsePackageVersionsFromResolvedFile (or -disableAutomaticPackageResolution) to every build and check git status for Package.resolved afterwards. After such a version flip, incremental builds failed with 'module.modulemap has been modified since the module file was built' and missing .pcm files under Intermediates.noindex/*ExplicitPrecompiledModules; a fresh -derivedDataPath fixed it.