Xcode and Bitbucket gives Authentication Failed

When cloning a Bitbucket repository from Xcode (using current version 9.2) I get Authentication failed.

Solution is to insert Password into URL.

Steps:

  1. Copy repository URL from Bitbucket – Overview, select HTTPS (not SSH)
  2. Paste it in to Xcode Clone window for Adding GitHub account (for example click “Clone an existing Project” from Xcode start screen)
  3. Before clicking the Clone button, edit the url to insert your Bitbucket password.
    Url looks something like this:
    https://[email protected]/xxx/yourproject.git
    Add password like this, colon and your password:
    https://username:password@bitbucket.org/xxx/yourproject.git
  4. Click Clone button and it should work

Leave a comment

Your email address will not be published. Required fields are marked *