I've been trying to use Carthage to get a private repo I use for most of my project, lets call it MyPrivateKit.
I've tried adding it to the Cartfile but everything I try I get the following response.
*** Fetching MyPrivateKit
A shell task failed with exit code 128:
fatal: Not a git repository (or any of the parent directories): .git
The different way's I've tried adding it to the Cartfile are listed below:
github "<organisation>/MyPrivateKit" ~> 0.6git "https://<Username>@github.com/<organisation>/MyPrivateKit" ~> 0.6git "https://<Username>@github.com/<organisation>/MyPrivateKit.git" ~> 0.6I'm sure I probably need to state my password or token for the repo somewhere, but I'm not sure where. KeychainAccess has the token in it, so I'm not sure where to try next. I obviously don't want it in a file that gets pushed, so I'm sure I shouldn't add it to the Cartfile, even if I know how.
Carthage 0.8.0, fyi :)
This would be dupe of #407, #642 and #694. Removing ~/Library/Caches/org.carthage.CarthageKit/dependencies/MyPrivateKit would help.
Additionally, this should have been fixed in Carthage 0.9.1.
Thanks, I'm now getting the following however.
A shell task failed with exit code 128:
fatal: could not read Password for 'https://<username>@github.com': terminal prompts disabled
Any news on 0.9.2 for brew?
It means that your Keychain is not correctly set up, I think. Please follow these instructions to set up a credential helper, or just try with github "<organisation>/MyPrivateKit" ~> 0.6. https://<Username>@github.com and https://github.com would be different URLs for the credential helper.
Ah amazing, that did the trick. I knew it'd be something somewhere. Thanks for the help and the fast response as always. 馃槉
My pleasure!
For me this worked for the authorization: "carthage update --use-ssh"
@ikesyo My terminal is struck while using it , I have also tried "carthage update --use-ssh"

Most helpful comment
For me this worked for the authorization: "carthage update --use-ssh"