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 cocos2d" #74

Open
MuhammadAliYousaf opened this issue Oct 29, 2014 · 9 comments
Open

"Error installing cocos2d" #74

MuhammadAliYousaf opened this issue Oct 29, 2014 · 9 comments

Comments

@MuhammadAliYousaf
Copy link

"Error installing cocos2d" when we go for pod install. while compiling ObjectAL-for-iPhone
you can see attached image.
We are getting following image.
screen shot 2014-10-29 at 4 40 38 pm

@mgrider
Copy link

mgrider commented Oct 29, 2014

I also have this issue when trying to run pod install in the ObjectALDemo directory.

@sohail-khan
Copy link

I am facing this issue. Any one has solution, Please mention here.

@kstenerud
Copy link
Owner

I'm actually getting the same issue when I create a fresh podspec file using pod spec create.
I've created a ticket here: CocoaPods/CocoaPods#2759

@Jasonbroker
Copy link

I am facing too. I can't see any useful demo

@purplehat7
Copy link

Same, but my error message is slightly different:

[!] Error installing cocos2d
[!] /usr/local/bin/git clone https://github.com/cocos2d/cocos2d-iphone.git/Users/alexcannon/PGL/ObjectAL-forCocos2D/ObjectALDemo/Pods/cocos2d --single-branch --depth 1 --branch release-2.1

Cloning into '/Users/alexcannon/PGL/ObjectAL-forCocos2D/ObjectALDemo/Pods/cocos2d'...

warning: Could not find remote branch release-2.1 to clone.

fatal: Remote branch release-2.1 not found in upstream origin

@Jasonbroker
Copy link

Same error msg!

On Feb 12, 2015, at 11:22 AM, Alex Cannon notifications@github.com wrote:

Same, but my error message is slightly different:

[!] Error installing cocos2d
[!] /usr/local/bin/git clone https://github.com/cocos2d/cocos2d-iphone.git/Users/alexcannon/PGL/ObjectAL-forCocos2D/ObjectALDemo/Pods/cocos2d --single-branch --depth 1 --branch release-2.1

Cloning into '/Users/alexcannon/PGL/ObjectAL-forCocos2D/ObjectALDemo/Pods/cocos2d'...

warning: Could not find remote branch release-2.1 to clone.

fatal: Remote branch release-2.1 not found in upstream origin

Reply to this email directly or view it on GitHub #74 (comment).

@purplehat7
Copy link

https://github.com/cocos2d/cocos2d-iphone.git now redirects to https://github.com/cocos2d/cocos2d-swift. It looks like the original cocos2d-iphone repo has moved to cocos2d-iphone-classic.

You have to update the repo link in the cocos2d.podspec file accordingly. Then pod setup; pod install.

Now I'm getting ARC errors when I try to build but that's a separate issue...

@manderson-productions
Copy link

Hi Alex,

Thanks for pointing out the new location for cocos2d. In xcode, go to the "Pods" project, and under Build Settings, simply set 'Objective-C Automatic Reference Counting' to No and the demo project should build fine (although there are a ton of warnings related to cocos2d library deprecations).

Mark

@purplehat7
Copy link

Awesome, thanks.

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

7 participants