I'm working in a project that need to have same parts native (cocoa touch) and some parts in cocos2d. I have made the all the native and now I need to integrate cocos2d in the project. My problem is that i cant add with success the cocos2d library to my project. Any good solution to do that? I'm using xCode 4
You essentially have two choices.
Option 1: Add cocos2d files to your existing project
Option 2: Install your existing code into a fresh project using the cocos2d templates
The latest version of cocos2d (1.0-RC) has XCode 4 templates. Install them:
install-templates.sh --force
Then create a new cocos2d project using those templates in XCode 4. Add your existing files and update the project that it creates, and you should be good to go.
Personally, I've had better luck with Option #2, but most of my code is pretty easy to move around.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With