./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.