Reputation: 1749
I'm trying to use woocommerce SDK for iOS and I have a cartfile
github "thii/WooCommerceSDK"
When I type 'carthage update' from my project directory, it gives me a error like
A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/thii/WooCommerceSDK.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/*)
failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Does anyone know how to fix this error?
Upvotes: 2
Views: 3205
Reputation: 16246
I use git with https exclusively, going back and forth between my personal and work GitHub accounts, and it has been a pain until I found how to set it up to save credentials on a per-repository basis (now it asks me user name and password once, when first cloning each repo, and never again).
When I tried adding a framework to my project using Carthage and get started by running:
$ carthage update
...I would get the error:
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/ORGANIZATION_NAME/REPOSITORY_NAME.git /Users/LOCAL_USER_NAME/Library/Caches/org.carthage.CarthageKit/dependencies/FRAMEWORK_NAME) failed with exit code 128: fatal: could not read Username for 'https://github.com/ORGANIZATION_NAME/REPOSITORY_NAME.git': terminal prompts disabled
(emphasis mine)
The discussion for issue #219 on the Carthage Github page gave the hint to clon e the repo once somewhere, just to have git store my credentials for that URL once, and then run $ carthage update
once again in my project's directory, and it worked.
It's an ugly workaround, but I hope it helps someone with the same problem.
Upvotes: 4
Reputation: 55
I think it's because he changed his username to "minhcasi". So you have to use
github "minhcasi/WooCommerceSDK"
instead of
github "thii/WooCommerceSDK"
Share the result with me!
Upvotes: 0