Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 2 replies, 0 views
Replied In
Bitbucket Authentication for Xcode
You should be able to make it switch to SSH by cloning the repository again but checking it out over SSH instead.
Go to Bitbucket
Find the repo you want to clone, and click the Clone button. If you're on Bitbucket Cloud it's at the top right, if you're on Bitbucket Server / Datacenter it's at the top left.
Make sure the Clone screen is set to SSH (not HTTPS).
Copy the repository URL but miss off the 'git clone' part if it's there. The part you want looks like git@bitbucket.org:username/repo.git
On the Xcode splash screen choose 'Clone an existing project'
Paste the thing you copied into the 'Enter Repository URL' box at the very top of the popup.
Note you'll need to have added your Mac's SSH key to your user preferences in Bitbucket first:
If the file ~/.ssh/id_rsa.pub exists on your machine, copy the contents. This is your public ssh key.
If that file doesn't exist, first generate it with ssh-keygen in a terminal.
Paste it into Bitbucket -> Your avatar -> Personal settings -> SSH Keys -> Add Key