Skip to content

chore: track swiftpm/Package.resolved in Xcode workspace - #154

Open
Aashu-Dubey wants to merge 1 commit into
ionic-team:mainfrom
Aashu-Dubey:chore/track-package-resolved
Open

Aashu-Dubey wants to merge 1 commit into
ionic-team:mainfrom
Aashu-Dubey:chore/track-package-resolved

Conversation

@Aashu-Dubey

Copy link
Copy Markdown

Description

Package.resolved is currently ignored globally, which is appropriate for the plugin itself, but this also causes the example app's Package.resolved to be ignored.

Since the generated example-app is a standalone Capacitor app, it's Package.resolved should be commited, as recommended by Apple.

So this PR updates the .gitignore to track Package.resolved specifically located at *.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

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-SPM directory, but as the documentation specifically mentions *.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved as 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

  • Android
  • iOS
  • Web

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