Using Tokens in Xcode

How to authenticate CUEBES repositories in Xcode

This guide shows you how to use Personal Access Tokens to authenticate CUEBES repositories in Xcode.

Step 1: Open Clone Dialog

In Xcode, go to Source Control > Clone... (or press Cmd + Shift + O and select "Clone").

Step 2: Enter Repository URL

Enter your CUEBES repository URL:

https://cuebes.com/username/repository-name.git

Step 3: Authenticate

When prompted for credentials:

  • Username: Your CUEBES username
  • Password: Your Personal Access Token

Step 4: Save to Keychain

Check "Remember in Keychain" to save your credentials for future use.

Method 2: Add Account in Preferences

Step 1: Open Xcode Preferences

Go to Xcode > Preferences (or press Cmd + ,).

Step 2: Go to Accounts

Click on the "Accounts" tab.

Step 3: Add Account

Click the "+" button and select "Other Server..."

Step 4: Enter Server Details

  • Server: cuebes.com
  • Account: Your CUEBES username
  • Token: Your Personal Access Token

Pushing Changes

Once authenticated, you can push directly from Xcode:

  1. Make your code changes
  2. Go to Source Control > Commit...
  3. Enter a commit message and click "Commit"
  4. Go to Source Control > Push...

Troubleshooting

Authentication Failed

If authentication fails:

  • Verify you're using your Personal Access Token, not your account password
  • Check that the token has "Write" permission if you're trying to push
  • Make sure the token hasn't expired

Clear Saved Credentials

To remove saved credentials and re-enter:

  1. Open Keychain Access (in Applications > Utilities)
  2. Search for "cuebes.com"
  3. Delete the saved credential
  4. Try cloning again to re-enter credentials

Token Permissions

  • Can clone but can't push? Your token needs "Write" permission
  • Can't access at all? Make sure you have access to the repository