ObjectAL-for-iPhone icon indicating copy to clipboard operation
ObjectAL-for-iPhone copied to clipboard

"Error installing cocos2d"

Open MuhammadAliYousaf opened this issue 10 years ago • 9 comments

"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

MuhammadAliYousaf avatar Oct 29 '14 11:10 MuhammadAliYousaf

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

mgrider avatar Oct 29 '14 21:10 mgrider

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

sohail-khan avatar Oct 30 '14 05:10 sohail-khan

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

kstenerud avatar Oct 30 '14 17:10 kstenerud

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

Jasonbroker avatar Feb 12 '15 02:02 Jasonbroker

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

purplehat7 avatar Feb 12 '15 03:02 purplehat7

Same error msg!

On Feb 12, 2015, at 11:22 AM, Alex Cannon [email protected] 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 https://github.com/kstenerud/ObjectAL-for-iPhone/issues/74#issuecomment-74011307.

Jasonbroker avatar Feb 12 '15 03:02 Jasonbroker

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...

purplehat7 avatar Feb 12 '15 03:02 purplehat7

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

manderson-productions avatar Apr 11 '15 20:04 manderson-productions

Awesome, thanks.

purplehat7 avatar Apr 14 '15 00:04 purplehat7