Hello, we’re consuming a private Swift package which is being consumed via ssh in Xcode.
We’re unable to resolve the dependencies because we’re unable to add GitLab as a known host.
I’ve followed the instructions in this thread to no avail:
The script we are using is:
for ip in $(dig @18.104.22.168 gitlab.com +short); do ssh-keyscan gitlab.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts
The script is placed after the SSH key activation and git clone:
The content of our lane is:
desc "Run all tests" lane :run_all_tests do xcodebuild(xcargs: '-resolvePackageDependencies') scan(project: 'Samples.xcodeproj', scheme: 'Sample', device: 'iPhone 12 Pro Max') end
Are there any known intricacies with GitLab specifically? Any ideas on how we can make this work?