Skip to content

Conversation

@heckj
Copy link
Member

@heckj heckj commented Oct 9, 2025

Update of the Getting Started guide for Swift Package Manager

Motivation:

The existing getting started guide focused entirely on dependency resolution, with content that pre-dates swift testing, dependency CLI additions, and common use of templates to start packages.

Modifications:

Revised the getting started guide article, using recent updates to example packages that were previously created, and recently updated to reflect swift-testing and use Swift 6.0 by default.

Result:

  • focus on starting with swift package init
  • shows command line additions of dependencies alongside changes to Package.swift manifest file
  • include source AND tests (using swift-testing)
  • walk through swift build, swift test, and swift package resolve
  • illustrate using transitive dependencies using the existing dealer example package
  • show using swift run for executable targets

@heckj
Copy link
Member Author

heckj commented Oct 9, 2025

@swift-ci please test

Copy link
Member

@dschaefer2 dschaefer2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thanks Joe!

@heckj heckj merged commit 1770fc1 into swiftlang:main Oct 28, 2025
6 checks passed
@heckj heckj deleted the updated-getting-started branch October 28, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants