views:

108

answers:

4

How do I duplicate my xcode project? (iPhone SDK)

By the way, I simply duplicated/renamed the entire project folder. But when I started working in the new (duplicated) project (after changing app ids, provisioning profiles) I started getting errors about targets. I have no clue about what targets are or anything either so. Hmmm. Hope this works.

A: 

You should be able to copy-and-paste your project directory to another folder without any issues.

+1  A: 

Just make a copy of the folder your project is in, then use the project file from your copy. You can also make a snapshot, if you're just looking to backup before you try some code ideas.

nevan
+3  A: 

While all the above answers are correct, I believe we should ask WHY you are doing this. If you want to make a lite version of your app or a version with a subtle difference, you should explore duplicating targets, not duplicating entire projects.

coneybeare
Not a lite version, but yeah, a similar app that uses 90% of the code. So, how do I do the targets then?
RexOnRoids
Right click on the current target and select duplicate. This is probable best asked as a new question.
coneybeare
A: 

An alternative - consider getting a free source control system like svn, git or mercurial (or perforce or other commercial systems offer free licenses for limited use)* and then do anything you like to your project. You can always go back to an earlier version if you don't like the results. If you want to get more complicated you can branch it. This is one of the biggest steps you can take towards working in a professional manner.

*anything but Visual SourceSafe. Don't use that! CVS is probably best avoided too.

Adam Eberbach
A little overkill for what I wanna do.
RexOnRoids
actually this isn't a bad recommendation, you should be versioning anything you are doing to begin with.
fuzzy lollipop
At first it seems like overkill. But when you can say "but it worked last Tuesday... what changed?" and know the answer easily it becomes indispensable.
Adam Eberbach
Source control and multiple targets are probably the way to go, but to answer his question, I believe that multiple targets are the solution to his problem
coneybeare