List all dependencies in the
Package.swiftfile for the package you want to resolve:dependencies: [ .package(id: "<SCOPE>.<NAME>", from:"<VERSION>") ]
Where:
<SCOPE>: The owner or namespace of the package, usually the scope of the source code repository URL<NAME>: The name of the project as defined in thePackage.swiftfile<VERSION>: The version of the package, usually corresponding with a tag in the source code repository
For example:
dependencies: [ .package(id: "apple.swift-nio", from: "2.65.0"), .package(id: "vapor.fluent", from: "4.8.0"), .package(id: "pointfreeco.swift-composable-architecture", from: "1.10.0"), .package(id: "google.swift-protobuf", from: "1.27.0") ]Run this command:
swift package resolve
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.