#Using Private Dependency Framework with SPM
1 messages · Page 1 of 1 (latest)
You mean a private github repository? And by locally you mean using Xcode? If so, it might be because you're signed with your github account into Xcode and thus it can fetch a private repo?
If it’s working in Xcode or similar I’m guessing you have it set up to use the SSH URL in the package already. For docker you need to inject tour SSH key into the image by adding it to ~/.ssh
Usually done as an an env var
This should work (please make sure the ssh file path is correct)
docker build -t CUSTOM_NAME --build-arg ssh_prv_key="$(cat ~/.ssh/id_rsa)" ./
If you use docker, here is what I did
#docker message