I have just recently created an update for my iPad game using Xcode 4.2 and SDK 5.0. The initial release was built with Xcode 3 and SDK 4.3. I had to rebuild the project starting with a new Cocos2D Xcode 4 template, and copy all the resources and class files into the new project. I now have a completed update that is ready for submitting to the store.
Now for the question. I want to create a "new" version of the project for the iPhone.. This version will require, resource (graphic and audio) and code changes that I DO NOT want effecting the current iPad project. At the same time, I would rather not rebuild the project from scratch again, like I did before.
Do I simply just "clone the current repository using Git in Xcode 4"? Then start modifying code and assets in the new repository? I have never used Git or Repositories before, that is why I am asking. I will have to make a lot of changes for the iPhone version, but want to start with a copy of the iPad project. In the end, I want to archive two separate projects with two separate source code sets, as code in many of the classes will require changes. I don't want my code changes to occur to my current iPad project directory. This is all new to me and I am not clear on how this "Git" and the repository stuff works. I am working alone, solo, so this is no team project and will not have multiple people changing code..
Unfortunately, I didn't code and design the game for iPhone compatibility, so a fair amount of modification will be needed for the new version. Most of it, of course, regarding screen resolution, size and aspect ratio differences.