You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this. I am closing this since it's a bug in Xcode and not OSS SwiftPM. As a workaround, you can try passing `-usePackageSupportBuiltinSCM` flag to xcodebuild.
Attachment: Download
Environment
Xcode Version 11.3.1 (11C505)
macOS Mojave 10.14.4 (18E226)
OpenSSH_7.9p1, LibreSSL 2.7.
Additional Detail from JIRA
md5: 7a808af90e0555bc2546db56b24c98a4
Issue Description:
Seems to only work if you have an id_rsa in your local ssh directory.
1) Example, check you have ssh key loaded:
ssh-add -l
> 2048 SHA256:<key-stuff>//<more-key-stuff> /Users/<user>/.ssh/id_rsa (RSA)
2) Delete or rename your local id_rsa
3) Try to clone a private repo (this works)
git clone git@github.com:<private-org>/<private-framework01>.git tempDir
4) Try to resolve package. dependencies (does NOT work):
xcodebuild -resolvePackageDependencies -workspace <Project1>.xcworkspace -scheme <Scheme2>
Fetching git@github.com:<private-org/<private-framework01>.git
xcodebuild: error: Could not resolve package dependencies:
Authentication failed because the credentials were rejected
Ran into this case with Team City CI when trying to use their SSH agent build feature, the same thing happens locally.
The text was updated successfully, but these errors were encountered: