Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Carthage Access Token

Tags:

git

ios

carthage

I use Carthage as a dependency manager for my iOS apps.

After using 'carthage update --platform iOS' got an email from github saying 'you used a password to access an endpoint through the GitHub API using org.carthage.CarthageKit/0.34.0' and that basic authentication is deprecated. What do I need to do to fix this?

like image 549
leo Avatar asked Mar 26 '20 19:03

leo


1 Answers

To fix this, in your CLI/Terminal, you need to replace your cached GitHub password with a GitHub personal access token.

On Mac, if you are using credential-osxkeychain credential helper, your credentials are stored in the keychain.

See these instructions: Updating credentials from the OS X Keychain

I had to delete both the github.com and gcm4ml:git:https://github.com stored passwords in the keychain.

To create the personal access token, see these instructions: Creating a personal access token for the command line

Next time git asks for you password, use the personal access token.

like image 132
Ryan Williams Avatar answered Nov 19 '22 09:11

Ryan Williams