Add input to disable Swift Package updates #374
Draft
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.
Checklist
step.yml
andREADME.md
is updated with the changes (if needed)Version
Requires a MINOR version update
Context
We previously changed xcode-archive Step to pass additional options the the -showBuildSettings command:
https://github.com/bitrise-steplib/steps-xcode-archive/pull/357/files
This fix was only partial and did not help achieve the required result, which is to pass the flags (
-onlyUsePackageVersionsFromResolvedFile
-disableAutomaticPackageResolution
) to xcodebuild. These prevent Swift package versions automatically upgraded.In addition it caused failures in cases when there was a Package.resolved file embedded in the xcworkpsace, but not in the xcproj. (
a resolved file is required when automatic dependency resolution is disabled and should be placed at [ ... ]/git/sample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved.
)Instead of setting additional options; set the Disable Swift Package Manager automatic resolution (
lock_swift_packages
) Input toyes
.This writes the following Xcode defaults:
Changes
Investigation details
Decisions