Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing Repeat with CocoaPods #1

Closed
loh opened this issue Feb 27, 2018 · 4 comments
Closed

Error installing Repeat with CocoaPods #1

loh opened this issue Feb 27, 2018 · 4 comments
Assignees
Milestone

Comments

@loh
Copy link

loh commented Feb 27, 2018

I am using CocoaPods 1.1.1 and got this error when attempting to pod install Repeat:

warning: --depth is ignored in local clones; use file:// instead.
warning: Could not find remote branch 0.1.0 to clone.
fatal: Remote branch 0.1.0 not found in upstream origin
fatal: The remote end hung up unexpectedly

Since this appears to be your initial release, I think this might be the solution:
https://stackoverflow.com/a/37038760/133485

Thanks for what looks to be a great timer!

@AnnieNinaJoyceV
Copy link

Experiencing same problem ^^^

@malcommac
Copy link
Owner

I’m a bit confused about the error. I’ve received the same message but I don’t understand why it search for a branch and not the tag.
Just to test I’ve also created a branch with that name but it didn’t solve the issue.

@squarefrog
Copy link

This is likely because the git url isn't specified in the pod spec:

https://github.com/malcommac/Repeat/blob/master/Repeat.podspec#L16

s.source       = { :git => ".git", :tag => s.version.to_s }

Should become:

s.source       = { :git => "https://github.com/malcommac/Repeat.git", :tag => s.version.to_s }

Although it surprises me that this spec was able to be pushed, without failing linting.

malcommac added a commit that referenced this issue Mar 4, 2018
@malcommac malcommac self-assigned this Mar 4, 2018
@malcommac malcommac added this to the 0.2.0 milestone Mar 4, 2018
@malcommac
Copy link
Owner

thank you @squarefrog 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants