Once you create a Swift repository from the Artifactory UI, we will need to configure the client in order to use it.
From your client, run the below command to set a Swift package registry:
When the above command is run, it will create a .swiftpm/configuration/registries.json file. You can verify this file to check if the registry is set correctly.
E.g:
From your client, run the below command to set a Swift package registry:
swift package-registry set https://[ARTIFACTORY_URL]/artifactory/api/swift/[swift-repo-name]
When the above command is run, it will create a .swiftpm/configuration/registries.json file. You can verify this file to check if the registry is set correctly.
E.g:
{ "registries" : { "[default]" : { "url" : "https://[ARTIFACTORY_URL]/artifactory/api/swift/[swift-repo-name]" } }, "version" : 1 }