carthage version: 0.24.0xcodebuild -version: Xcode 9.0 Build version 9M174d--no-build? No--no-use-binaries? Yes--use-submodules? No--cache-builds? NoCartfile
git "[email protected]:MyCompany/MyFramework-iOS" == 1.0.37
Carthage Output
$ carthage update --platform iOS --no-use-binaries
*** Cloning MyFramework-iOS
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/com:MyCompany/MyFramework-iOS.git /Users/me/Library/Caches/org.carthage.CarthageKit/dependencies/MyFramework-iOS) failed with exit code 128:
remote: Repository not found.
fatal: repository 'https://github.com/MyCompany/MyFramework-iOS.git/' not found
Well that URL doesn't look right in the shell task.
Does it work if you pass the --use-ssh flag?
Potentially caused by #1995
Does it work if you pass the --use-ssh flag?
Yes it works with --use-ssh 馃憤 馃檪
I'll take care of this
Hi, with the Cartfile you have provided Carthage executes correctly the following:
/usr/bin/env git clone --bare --quiet https://github.com/MyCompany/MyFramework-iOS.git
Can you share more information?
@blender it's close source framework. I'm not authorised to give you more information. Sorry 馃槙
@TofPlay I understand. Would be useful if you could come up with a name with a similar pattern to the actual name causing the problem.
Can you try changing your Cartfile to github "MyCompany/MyFramework-iOS" == 1.0.37 and running carthage update --no-use-binaries? I'm curious to see what error you get (or if you don't get an error).
Face the same problem.
Here is the error message, IronThrone is a private repository:
*** Fetching IronThrone
A shell task (/usr/bin/env git fetch --prune --quiet https://github.com/ricebook/IronThrone.git refs/tags/*:refs/tags/* +refs/heads/*:refs/heads/* (launched in /Users/carl/Library/Caches/org.carthage.CarthageKit/dependencies/IronThrone)) failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I prefer to use ssh key instead of https.
@webfrogs can you paste the Cartfile and Cartfile.resolved line for that repo?
Cartfile:
git "[email protected]:ricebook/IronThrone.git" "master"
There is no Cartfile.resolved file because carthage failed.
@webfrogs I believe Carthage is behaving correctly in your case. I see that it's trying to clone https://github.com/ricebook/IronThrone.git . Seems like your git client is having a hard time reading your credentials for https? If you want to use ssh try --use-ssh
It works with --use-ssh flag, Thanks.
But I think changing all GitHub repository url to https is not a very good idea, especially for private repositories.
But I think changing all GitHub repository url to https is not a very good idea, especially for private repositories.
I understand your opinion, but FYI #1995 is an attempt to address #1644.
@ikesyo Got it. It seems that I should always use --use-ssh flag. A little bit inconvenient.
I think this is working as expected.
Most helpful comment
Well that URL doesn't look right in the shell task.
Does it work if you pass the
--use-sshflag?