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?
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:
Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens
Click Create API token with scopes and select Bitbucket Cloud
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.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.