Repository navigation
chore: track swiftpm/Package.resolved in Xcode workspace - #154
Open
Aashu-Dubey wants to merge 1 commit into
Open
Aashu-Dubey wants to merge 1 commit into
Aashu-Dubey wants to merge 1 commit into
Conversation
Apple's official documentation recommends committing this file for CI environments: https://developer.apple.com/documentation/xcode/building-swift-packages-or-apps-that-use-them-in-continuous-integration-workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Package.resolvedis currently ignored globally, which is appropriate for the plugin itself, but this also causes the example app'sPackage.resolvedto be ignored.Since the generated
example-appis a standalone Capacitor app, it'sPackage.resolvedshould be commited, as recommended by Apple.So this PR updates the
.gitignoreto trackPackage.resolvedspecifically located at*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Change Type
Rationale / Problems Fixed
Apple's official documentation recommends committing this file for CI environments: see building-swift-packages-or-apps-that-use-them-in-continuous-integration-workflows
There are mentions to commit this file and it's usage at other places in the documentation as well:
The file can also be generated inside
CapApp-SPMdirectory, but as the documentation specifically mentions*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolvedas the location, I've only included that.Tests or Reproductions
I tried it recently for github actions in my Capacitor plugin (commit 35b2200).
Platforms Affected