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

Cocoapods fails to install Typhoon on Yosemite 10.10 #275

Closed
RobBrennan opened this issue Nov 7, 2014 · 4 comments
Closed

Cocoapods fails to install Typhoon on Yosemite 10.10 #275

RobBrennan opened this issue Nov 7, 2014 · 4 comments

Comments

@RobBrennan
Copy link

I'm not sure what the issue is here, but the Typhoon pod will not install for my Xcode project. I'm on Yosemite 10.10 and running the latest Xcode 6.1 release.

The error I get is:
$ pod install
Analyzing dependencies

CocoaPods 0.35.0.rc2 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Downloading dependencies
Installing Typhoon (2.3.0)

[!] Error installing Typhoon
[!] /usr/local/bin/git clone https://github.com/typhoon-framework/Typhoon.git /Users/rob/Documents/Objective-C\ Projects/GUITyphoonExample/Pods/Typhoon --single-branch --depth 1 --branch 2.3.0

error: unknown option `single-branch'

usage: git clone [options] [--] [

]

-v, --verbose         be more verbose

-q, --quiet           be more quiet

--progress            force progress reporting

-n, --no-checkout     don't create a checkout

--bare                create a bare repository

--mirror              create a mirror repository (implies bare)

-l, --local           to clone from a local repository

--no-hardlinks        don't use local hardlinks, always copy

-s, --shared          setup as shared repository

--recursive           initialize submodules in the clone

--recurse-submodules  initialize submodules in the clone

--template <template-directory>

                      directory from which templates will be used

--reference <repo>    reference repository

-o, --origin <name>   use <name> instead of 'origin' to track upstream

-b, --branch <branch>

                      checkout <branch> instead of the remote's HEAD

-u, --upload-pack <path>

                      path to git-upload-pack on the remote

--depth <depth>       create a shallow clone of that depth

--separate-git-dir <gitdir>

                      separate git dir from working tree

-c, --config <key=value>

                      set config inside the new repository

My Podfile is defined as:
platform :ios, '7.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'GUITyphoonExample' do
pod 'Typhoon', '~> 2.3'
end

target 'GUITyphoonExampleTests' do

end

Any ideas how I can resolve this?

@sebastianwr
Copy link

Try installing an updated version of git. This somehow broke in some version of CocoaPods. The single-branch command is only available in Git 2+ and Mac OS X ships with 1.8 or something.

@jasperblues
Copy link
Member

You can (normally) install Typhoon via CocoaPods on Yosemite and Xcode 6.1. Initially I thought your issue would be related to:

#259
#260

(both solutions were to upgrade CocoaPods) . . but yours looks different.

@TheRobBrennan
Copy link

Resolved. You are correct - the issue was the Xcode had git version 1.7.8.4 - and upgrading to the latest one resolved the issue.

Thank you for your quick response!

@jasperblues
Copy link
Member

Thanks @sebastianwr

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