-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH fingerprint failed to verify #4
Comments
I don't know about the Swift Package Manager... Do you want to clone the private repo from GitHub at all? |
No I dont want to clone the repository directly. I only want to build my app with xcodebuild. But the application depends on the private repository. Normally xcodebuild pulls all the dependencies added with SPM, but here it fails due to the fingerprint. The dependency was added via ssh, so I added the ssh keys to my action. |
I think the issue here is that your host containing the private repo does not have its public key in the |
Can you provide a public demo project that shows the error? |
Finally I figured it out. It seems like its a known issue in Xcode 11 (https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes). Thanks to Dosium in this post (https://discuss.bitrise.io/t/xcode-11-resolving-packages-fails-with-ssh-fingerprint/10388), I was able to get it work. The solution is to run the following command before running xcodebuild: |
It’s been a while, but maybe the answer is that by default, see https://github.com/webfactory/ssh-agent#using-deploy-keys-with-swift-package-manager |
I'm fucking buying you a beer i've spent hours on this problem. You are my hero today |
…/actions/upload-artifact-3 Bump actions/upload-artifact from 2 to 3
I have set up a Xcode project with a private repository as dependency using Swift Package Manager. Therefore I have to add the ssh key for the dependency. Cloning the repository in a Github Action step is working well, but when I try to build the app in a step with xcodebuild I get the following error:
xcodebuild: error: Could not resolve package dependencies: The server SSH fingerprint failed to verify.
The text was updated successfully, but these errors were encountered: