Migrating from Cocos2D iPhone to Cocos2D-X

Hello Cocos2D-X Community,

I’m working on an iOS app that is already on the store. I’d really like to move the app to this framework because it would allow me and my peers to work on the same codebase for every platform.

I know that it’s possible to add Cocos2D-X to an existing Android codebase: http://jpsarda.tumblr.com/post/26000816688/integrate-cocos2d-x-c-into-an-android-application

I know that it’s possible to add Cocos2D-X to a new iOS and new Android codebase: http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started

What I need to do is add Cocos2D-X to an existing iOS and Android codebase, and edit the same C++ code for all platforms.

When I try to add the library to iOS, I get the error: 'platform/CCPlatformConfig.h' file not found. I think this is due to Xcode using groups and Cocos2D using folders.

Where is there a resource where I can learn how to build Cocos2D-X for an existing Cocos2D codebase on iOS?

With thanks,

PLJNS.

Xcode groups are nothing more than “folders” inside the project, they serve only to make the project cleaner when you open in Xcode.
You need to check to make sure the project has the proper search paths…

But if you are wanting to go from a cocos2d game that you already wrote to cocos2d-x you will need to rewrite most of your code from objc to c++ (since the only thing that understands objc is iPhone :P)
Unless i missed something in your question