Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Bitbucket Private Repository With Carthage That Ask For Passwords

I'm in the middle of setting up a framework I just created and then uploaded to a private repo on Bitbucket.

I've added the following to my Cartfile:

git "https://[email protected]/myUsername/myFramework.git"

However when I run carthage update --platform iOS, I get the following error:

A shell task (/usr/bin/env git clone --bare --quiet https://[email protected]/myUsername/myFramework.git /Users/jack/Library/Caches/org.carthage.CarthageKit/dependencies/myFramework) failed with exit code 128: fatal: could not read Password for 'https://[email protected]': terminal prompts disabled

How do you advise I get this working?

like image 450
Jack Robson Avatar asked Jun 18 '16 15:06

Jack Robson


People also ask

How can I see my password in bitbucket?

Login to Bitbucket. Click on your profile image in the top-right. Choose Personal settings. Under Access management section look for the App passwords option (https://bitbucket.org/account/settings/app-passwords/)

What is Git App password?

To create an app password: From your profile and settings avatar, select Personal settings. Select App passwords under Access management. Select Create app password. Give the app password a name related to the application that will use the password.


1 Answers

Switch to using ssh keys with the your account on Bitbucket. Then use the carthage line:

git "[email protected]:<acct>/<repo>.git"
like image 60
Dru Freeman Avatar answered Oct 24 '22 21:10

Dru Freeman