Posts

Post not yet marked as solved
5 Replies
5.2k Views
Hey people, I'm using (or rather trying to use) Swift Packages for my project. This is not about the countless other bumps I found along the road. (Xcode/SPM is still very beta with Xcode 12.0.1 but I'll reserve complaining about for another day). But one I did not even something vaguely useful when googling it. So I started out using file paths for my dependencies, like: .package(name: "BlaBla", path: "/Users/me/GitDev/BlaBla") for some reason that does not work when you want to chain dependencies (Another bug to fix, Apple!). So I wanted to change to versions using a git repo. I gave my repo a tag and put in: .package(url: "ssh://me@server.local/usr/home/me/GitDev/BlaBla", from: "0.0.1"), On the command line SPM has no problem resolving this:  % swift package resolve Fetching ssh://me@… Cloning ssh://me@… Resolving ssh://me@… at 0.0.1 In Xcode though, I get the line from the title: An unknown error occurred. username does not match previous request (-1) (by the way I have copied this by hand as the message could not even be copy & pasted) Any ideas how to solve this? Or even debug this any further? best Roddi
Posted
by Roddi.
Last updated
.
Post not yet marked as solved
9 Replies
10k Views
When I use my repository with an "ssh://" URL and a private/public key, Xcode throws a "username does not match previous request (-1)" error. command line git (and every other GUI Git tool I tried) work without problems. Unfortunately this is also a problem for Swift Packages making them unusable for me. Before you ask: Of course "swift package …" works without problems on the command line. The problem exist consistently on every Xcode 12 version so far including Xcode 12b3. Seems like the devs put a bad git library into Xcode and now just leave it like that.
Posted
by Roddi.
Last updated
.