ObjectAL-for-iPhone
ObjectAL-for-iPhone copied to clipboard
"Error installing cocos2d"
"Error installing cocos2d" when we go for pod install. while compiling ObjectAL-for-iPhone
you can see attached image.
We are getting following image.
I also have this issue when trying to run pod install
in the ObjectALDemo
directory.
I am facing this issue. Any one has solution, Please mention here.
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
I am facing too. I can't see any useful demo
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
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.
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...
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
Awesome, thanks.