The Xcode Archive & Export for iOS Step failed with the following error:
xcodebuild: error: Could not resolve package dependencies: The server SSH fingerprint failed to verify.
This error is related to an ongoing bug in Xcode 11. The issue is that SwiftPM dependencies cannot be resolved over SSH without first adding the dependency host to the
To do this, add a Script Step to your Workflow at the point before the dependency is pulled.
ssh-keyscan -H <host> >> ~/.ssh/known_hosts
You have to replace
<host> with the host of the repo (eg.
github.com) that you want to pull from.
The bug is documented in the Xcode 11 Release Notes.