kstenerud / ObjectAL-for-iPhone

Mac and iOS Audio development, minus the headache. ObjectAL is the easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
http://kstenerud.github.com/ObjectAL-for-iPhone
886 stars 171 forks source link

"Error installing cocos2d" #74

Open MuhammadAliYousaf opened 9 years ago

MuhammadAliYousaf commented 9 years ago

"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 commented 9 years ago

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

sohail-khan commented 9 years ago

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

kstenerud commented 9 years ago

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

Jasonbroker commented 9 years ago

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

purplehat7 commented 9 years ago

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 commented 9 years ago

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 https://github.com/kstenerud/ObjectAL-for-iPhone/issues/74#issuecomment-74011307.

purplehat7 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

Awesome, thanks.