I have a local file server with git repositories and ssh access. I have several swift packages stored there, and some of them have been successfully added as dependencies in projects using Xcode 11.
I am now unable to add any package dependencies like this in Xcode 12.
I can successfully clone the repo from the Source Control -> Clone... menu so I know the repo is valid.
The steps I am following are to add the dependency:
I am now unable to add any package dependencies like this in Xcode 12.
I can successfully clone the repo from the Source Control -> Clone... menu so I know the repo is valid.
The steps I am following are to add the dependency:
File -> Swift Packages -> Add Package Dependency...
Enter: ssh://MyServer.local/path/to/git/repo
Xcode prompts for credentials -> success
Xcode asks for the import rules, with correctly filled in version numbers (so I know it can access the repo at this point)
I accept the defaults, click "next"
I get the following error:
Any idea how resolve this? Existing SPM packages resolve and work correctly, but I can't add any new ones.The source control operation failed because no working copy could be found. Make sure the file is in a valid working copy and try again.