How do I convert my VS2010 game to xcode for iphone on my mac?

Hey everyone. I downloaded cocos2d-x about a week ago and started making a game with it using Windows and Visual Studio 2010. I’ve got a game made now and a mac up and running and would like to build my game on my mac with the iPhone simulator. How do I do this? I really have no idea. I didn’t want to use objective C and xcode in the first place which is why I tried cocos2d-x under the assumption that I would be able to do what I want to do here. Any help is appriciated.

Chad

Steps:
# Run ./install-templates-xcode.sh -u -f on the path of cocos2d-x. Choose “3” or “4” for xcode3/xcode4
# Start Xcode, create a new project from cocos2d-x templates
# Build & run the new project, until see HelloWorld shown on iphone simulator successfully
# Copy-paste the files under “Classes”, “Resources” from your cocos2d-win32 project to the new created xcode project.
# Add source files & resources manually into xcode project
# Build & Run again.
# Normally, you will meet some compilation errors caused by the usage of win32 APIs which aren’t offered by ios sdk. Fix them, then the game will run successfully on iphone simulator.