Reputation: 5056
I have an Xcode project with a reference to a Swift Package within a github server. From the local machine I am working on, I can not access the server, but I can copy the package from another network ( into a usb thumb-stick for instance ) and carry it over to my local machine.
My question is, once I have a copy of the repo, how can I manually added to my project so it stops trying to get it from the network?
Upvotes: 0
Views: 740
Reputation: 16341
You could change the path from where the package is being fetched in Package.swift
file.
let package = Package(
name: "AutoLayoutProxy",
dependencies: [
.package(url: "../AutoLayoutProxy", from: "1.0.0")
//.package(path: "../AutoLayoutProxy") // is also fine
]
)
Upvotes: 1