Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use the API tokens with Xcode?

allenu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 21, 2025

I am unable to use the API token when configuring my Bitbucket Cloud account in Xcode. I was able to successfully create an API token but when I paste it into Xcode as the Password field for my account, I get an error that "Your account or password is incorrect". I was able to use the App Passwords just fine with Xcode but the API token doesn't work.

Can you help me get this working?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 27, 2025

G'day Allen!

 

To start using API tokens - you'll need to create the API token and specify the scope - this is mentioned in our deprecation documentation:

  1. Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens

  2. Click Create API token with scopes and select Bitbucket Cloud

  3. If you want to be able to clone/push/pull to the repository - you'll need to tick both read:repository:bitbucket and write:repository:bitbucket - clone only would just be read:repository:bitbucket. More information on scopes can be found in our API scopes documentation.

  4. Perform the clone using the API token by updating the remote URL in Xcode to either of the formats below - it should use Basic auth:


If you're still unable to use the API token, I'd recommend reaching out to the Xcode forums for further support:

 

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events