Adding Cocos Framework

10 views
Skip to first unread message

Robert Friston

unread,
Jan 11, 2012, 4:49:45 AM1/11/12
to brighton-iph...@googlegroups.com

Hi All,

Does anyone have a good resource for adding the full Cocos framework to an iPhone App? Ideally how to add it to an existing App, but anything that might help to get the bulk of it done. I know that quite a few developers have stumbled over this and I cant seem to find any installer or anything that seems that reliable or officially sanctioned.

Cheers
Bob

Andy Kerridge

unread,
Jan 11, 2012, 5:42:34 AM1/11/12
to brighton-iph...@googlegroups.com, brighton-iph...@googlegroups.com
Hi Rob,

I've always done it by running the shell script that comes in the cocos distro. It installs Xcode templates for cocos / box2d / chipmunk and you build your app from there. I added it to an existing app a while ago by dragging it into the project, adding the required frameworks and include paths, but I think that was a bit hit and miss.
http://www.monoclestudios.com/cocos2d_whitepaper.html has some info

You can also try adding it as a libraryhttp://www.clintharris.net/2009/iphone-app-shared-libraries

Apart from the templates route I don't know of anything else that is officially sanctioned

Hope that helps.

Best
Andy
--
You received this message because you are subscribed to the Google Groups "Brighton iPhone Creators" group.
To post to this group, send email to brighton-iph...@googlegroups.com.
To unsubscribe from this group, send email to brighton-iphone-cr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/brighton-iphone-creators?hl=en.

Robert Friston

unread,
Jan 11, 2012, 6:05:33 AM1/11/12
to brighton-iph...@googlegroups.com
Hi Andy

Thanks very much, that looks like it'll do the trick :)

Cheers
Bob

Leandro Barreto

unread,
Jan 11, 2012, 6:28:06 AM1/11/12
to brighton-iph...@googlegroups.com
It should be pretty straight forward:

Run this Terminal command in the same directory where you downloaded Cocos2D:

./install-templates.sh -f -u

That will install the template for a new Cocos2D project and make it available on Xcode.

cocos2d_new_template.png


cocos2d_new_template.png
Reply all
Reply to author
Forward
0 new messages