carthage issue #21

Closed
opened 2025-12-29 15:22:12 +01:00 by adam · 21 comments
Owner

Originally created by @demonar on GitHub (Dec 5, 2015).

When adding the project as a carthage dependency i get the following error:

A shell task failed with exit code 128:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Originally created by @demonar on GitHub (Dec 5, 2015). When adding the project as a carthage dependency i get the following error: A shell task failed with exit code 128: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
adam added the fixed label 2025-12-29 15:22:12 +01:00
adam closed this issue 2025-12-29 15:22:12 +01:00
Author
Owner

@PaulWoodIII commented on GitHub (Dec 5, 2015):

Just a quick response but that seems like a Carthage / Git configuration error not a CoreStore error.

@PaulWoodIII commented on GitHub (Dec 5, 2015): Just a quick response but that seems like a Carthage / Git configuration error not a CoreStore error.
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

It is related to CoreStore as i have other libraries working without issues, i can try to get only CoreStore to see if the issue is related to having CoreStore and other libs at the same time.

@demonar commented on GitHub (Dec 5, 2015): It is related to CoreStore as i have other libraries working without issues, i can try to get only CoreStore to see if the issue is related to having CoreStore and other libs at the same time.
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

$ carthage update --platform ios
*** Fetching CoreStore
*** Checking out CoreStore at "1.3.4"
A shell task failed with exit code 128:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@demonar commented on GitHub (Dec 5, 2015): $ carthage update --platform ios **\* Fetching CoreStore **\* Checking out CoreStore at "1.3.4" A shell task failed with exit code 128: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

This are the other libraries i have and they're building just fine:

*** Fetching PKHUD
*** Fetching ObjectMapper
*** Fetching AlamofireImage
*** Fetching Alamofire
*** Fetching ReactiveCocoa
*** Fetching Result
*** Checking out PKHUD at "2.2.5"
*** Checking out ObjectMapper at "1.0.1"
*** Checking out AlamofireImage at "2.1.1"
*** Checking out Alamofire at "3.1.3"
*** Checking out Result at "1.0.0"
*** Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4"
*** xcodebuild output can be found in /var/folders/5k/tpwkj4kj2jj0l9p1h85ntp_c0000gn/T/carthage-xcodebuild.oAk1EZ.log

@demonar commented on GitHub (Dec 5, 2015): This are the other libraries i have and they're building just fine: **\* Fetching PKHUD **\* Fetching ObjectMapper **\* Fetching AlamofireImage **\* Fetching Alamofire **\* Fetching ReactiveCocoa **\* Fetching Result **\* Checking out PKHUD at "2.2.5" **\* Checking out ObjectMapper at "1.0.1" **\* Checking out AlamofireImage at "2.1.1" **\* Checking out Alamofire at "3.1.3" **\* Checking out Result at "1.0.0" **\* Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4" **\* xcodebuild output can be found in /var/folders/5k/tpwkj4kj2jj0l9p1h85ntp_c0000gn/T/carthage-xcodebuild.oAk1EZ.log
Author
Owner

@PaulWoodIII commented on GitHub (Dec 5, 2015):

Whats your Cartfile look like?

@PaulWoodIII commented on GitHub (Dec 5, 2015): Whats your Cartfile look like?
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

github "ReactiveCocoa/ReactiveCocoa" >= 4.0
github "Alamofire/Alamofire" >= 3.0
github "Alamofire/AlamofireImage" >= 2.0
#github "gitdoapp/sugarrecord"
github "JohnEstropia/CoreStore" >= 1.3.0
github "Hearst-DD/ObjectMapper" >= 1.0
github "pkluz/PKHUD"

@demonar commented on GitHub (Dec 5, 2015): github "ReactiveCocoa/ReactiveCocoa" >= 4.0 github "Alamofire/Alamofire" >= 3.0 github "Alamofire/AlamofireImage" >= 2.0 #github "gitdoapp/sugarrecord" github "JohnEstropia/CoreStore" >= 1.3.0 github "Hearst-DD/ObjectMapper" >= 1.0 github "pkluz/PKHUD"
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

Could that be related to that you have GCDKit as a submodule?

@demonar commented on GitHub (Dec 5, 2015): Could that be related to that you have GCDKit as a submodule?
Author
Owner

@PaulWoodIII commented on GitHub (Dec 5, 2015):

using just github "JohnEstropia/CoreStore" >= 1.3.0 in a clean project I can't reproduce the error when running carthage bootstrap

The Permission denied (publicly). makes me think its a git problem

you've got a point about the GCDKit submodule, what version of Carthage are you using?

@PaulWoodIII commented on GitHub (Dec 5, 2015): using just github "JohnEstropia/CoreStore" >= 1.3.0 in a clean project I can't reproduce the error when running `carthage bootstrap` The `Permission denied (publicly).` makes me think its a git problem you've got a point about the GCDKit submodule, what version of Carthage are you using?
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

it's 0.10.0

@demonar commented on GitHub (Dec 5, 2015): it's 0.10.0
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

i run carthage update --platform ios to get the latest and build only for ios and avoid creating extra lib files

@demonar commented on GitHub (Dec 5, 2015): i run `carthage update --platform ios` to get the latest and build only for ios and avoid creating extra lib files
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

This is the result of running bootstrap on my cartfile:

$ carthage bootstrap
*** No Cartfile.resolved found, updating dependencies
*** Fetching PKHUD
*** Fetching ObjectMapper
*** Fetching CoreStore
*** Fetching AlamofireImage
*** Fetching Alamofire
*** Fetching ReactiveCocoa
*** Fetching Result
*** Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4"
*** Checking out AlamofireImage at "2.1.1"
*** Checking out Result at "1.0.0"
*** Checking out ObjectMapper at "1.0.1"
*** Checking out Alamofire at "3.1.3"
*** Checking out PKHUD at "2.2.5"
*** Checking out CoreStore at "1.3.4"
A shell task failed with exit code 128:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

@demonar commented on GitHub (Dec 5, 2015): This is the result of running bootstrap on my cartfile: $ carthage bootstrap **\* No Cartfile.resolved found, updating dependencies **\* Fetching PKHUD **\* Fetching ObjectMapper **\* Fetching CoreStore **\* Fetching AlamofireImage **\* Fetching Alamofire **\* Fetching ReactiveCocoa **\* Fetching Result **\* Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4" **\* Checking out AlamofireImage at "2.1.1" **\* Checking out Result at "1.0.0" **\* Checking out ObjectMapper at "1.0.1" **\* Checking out Alamofire at "3.1.3" **\* Checking out PKHUD at "2.2.5" **\* Checking out CoreStore at "1.3.4" A shell task failed with exit code 128: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

As GCDKit is a submodule and it's not declared as a carthage dependency, carthage is not able to resolve it, also, as you are the developer you might have no issues on getting the submodule, i think that's why i get the error, i'll try to add GCDKit as another carthage dependency to check if that solves the issue

@demonar commented on GitHub (Dec 5, 2015): As GCDKit is a submodule and it's not declared as a carthage dependency, carthage is not able to resolve it, also, as you are the developer you might have no issues on getting the submodule, i think that's why i get the error, i'll try to add GCDKit as another carthage dependency to check if that solves the issue
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

Tried with no luck

@demonar commented on GitHub (Dec 5, 2015): Tried with no luck
Author
Owner

@PaulWoodIII commented on GitHub (Dec 5, 2015):

I'm not the developer, I've got no special access to the repo, just trying to help

@PaulWoodIII commented on GitHub (Dec 5, 2015): I'm not the developer, I've got no special access to the repo, just trying to help
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

no worries, @JohnEstropia , i got it working by making these changes:

https://github.com/demonar/CoreStore

the tag 1.3.5 has GCDKit as a Carthage dependency and the resulting call to carthage update was:

$ carthage update --platform ios
*** Fetching PKHUD
*** Fetching ObjectMapper
*** Fetching CoreStore
*** Fetching AlamofireImage
*** Fetching Alamofire
*** Fetching ReactiveCocoa
*** Fetching GCDKit
*** Fetching Result
*** Checking out AlamofireImage at "2.1.1"
*** Checking out ObjectMapper at "1.0.1"
*** Checking out PKHUD at "2.2.5"
*** Checking out Result at "1.0.0"
*** Checking out GCDKit at "1.1.4"
*** Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4"
*** Checking out CoreStore at "1.3.5"
*** Checking out Alamofire at "3.1.3"
*** xcodebuild output can be found in /var/folders/5k/tpwkj4kj2jj0l9p1h85ntp_c0000gn/T/carthage-xcodebuild.RJkj4Z.log

@demonar commented on GitHub (Dec 5, 2015): no worries, @JohnEstropia , i got it working by making these changes: https://github.com/demonar/CoreStore the tag 1.3.5 has GCDKit as a Carthage dependency and the resulting call to carthage update was: $ carthage update --platform ios **\* Fetching PKHUD **\* Fetching ObjectMapper **\* Fetching CoreStore **\* Fetching AlamofireImage **\* Fetching Alamofire **\* Fetching ReactiveCocoa **\* Fetching GCDKit **\* Fetching Result **\* Checking out AlamofireImage at "2.1.1" **\* Checking out ObjectMapper at "1.0.1" **\* Checking out PKHUD at "2.2.5" **\* Checking out Result at "1.0.0" **\* Checking out GCDKit at "1.1.4" **\* Downloading ReactiveCocoa.framework binary at "v4.0-alpha.4" **\* Checking out CoreStore at "1.3.5" **\* Checking out Alamofire at "3.1.3" **\* xcodebuild output can be found in /var/folders/5k/tpwkj4kj2jj0l9p1h85ntp_c0000gn/T/carthage-xcodebuild.RJkj4Z.log
Author
Owner

@demonar commented on GitHub (Dec 5, 2015):

If you want i can fill a pull request so you can include these changes on the repo.

@demonar commented on GitHub (Dec 5, 2015): If you want i can fill a pull request so you can include these changes on the repo.
Author
Owner

@JohnEstropia commented on GitHub (Dec 6, 2015):

@demonar Can you check if the 1.3.4 tag works for you? I just discovered this as well yesterday when I was setting up Travis-CI builds.
Relevant commit: 03da3544f6

@JohnEstropia commented on GitHub (Dec 6, 2015): @demonar Can you check if the 1.3.4 tag works for you? I just discovered this as well yesterday when I was setting up Travis-CI builds. Relevant commit: https://github.com/JohnEstropia/CoreStore/commit/03da3544f67fecf1361753eec714d2003d4fa1f7
Author
Owner

@JohnEstropia commented on GitHub (Dec 6, 2015):

@demonar Can I check your pull request?
I find it weird you got it working because CoreStore never had a 1.3.5 tag...

EDIT:
Oh okay you added the tag to your own fork. That confirms this is a cache problem. I'll push a 1.3.5 tag to the main CoreStore repository once I get GCDKit's travis configuration working.

Thanks!

@JohnEstropia commented on GitHub (Dec 6, 2015): @demonar Can I check your pull request? I find it weird you got it working because CoreStore never had a 1.3.5 tag... EDIT: Oh okay you added the tag to your own fork. That confirms this is a cache problem. I'll push a 1.3.5 tag to the main CoreStore repository once I get GCDKit's travis configuration working. Thanks!
Author
Owner

@demonar commented on GitHub (Dec 6, 2015):

Sorry for the late answer, yes, i added the 1.3.5 tag on my fork to make it work, otherwise Carthage won't take the commit.

I see that on your commit you added the https url for the repo, what i did is different, i think you can checkout my fork and take a look, basically, i removed GCDKit as a submodule and added it as a carthage dependency, that way, each carthage user will get GCDKit and CoreStore at the same time.
If you do that please look at the project settings, they are a little different, not that bad.

@demonar commented on GitHub (Dec 6, 2015): Sorry for the late answer, yes, i added the 1.3.5 tag on my fork to make it work, otherwise Carthage won't take the commit. I see that on your commit you added the https url for the repo, what i did is different, i think you can checkout my fork and take a look, basically, i removed GCDKit as a submodule and added it as a carthage dependency, that way, each carthage user will get GCDKit and CoreStore at the same time. If you do that please look at the project settings, they are a little different, not that bad.
Author
Owner

@demonar commented on GitHub (Dec 6, 2015):

By the way, AWESOME DB library, thumbs up

@demonar commented on GitHub (Dec 6, 2015): By the way, AWESOME DB library, thumbs up
Author
Owner

@JohnEstropia commented on GitHub (Dec 6, 2015):

@demonar

i removed GCDKit as a submodule and added it as a carthage dependency

I see what you mean now. Unfortunately, I can't remove GCDKit's submodule as that will break the build for non-Carthage users. Hopefully my commit made it work for everyone.

By the way, AWESOME DB library, thumbs up

Thanks! Feel free to report any other issues you find :)

@JohnEstropia commented on GitHub (Dec 6, 2015): @demonar > i removed GCDKit as a submodule and added it as a carthage dependency I see what you mean now. Unfortunately, I can't remove GCDKit's submodule as that will break the build for non-Carthage users. Hopefully my commit made it work for everyone. > By the way, AWESOME DB library, thumbs up Thanks! Feel free to report any other issues you find :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#21