Sunday, November 02, 2008

Details on versioning

After the first steps in versioning I stumbled over some beginner's mistakes, I guess.
So let's walk through a quick project setup.

  1. Create a project in Xcode somewhere on your disk (you'll delete it later anyways....)
  2. Click on SCM in the Xcode menu, and then Repositories
  3. After selecting your Repository (mine is called Local Subversion), select the folder/branch where you want the project to be stored at
  4. Select Import in the toolbar
  5. Select the folder where the previously created project is located at and hit Import
  6. Xcode will tell you that the project got imported
  7. Now close the project and delete it
  8. Again go to the Repositores (step 2)
  9. Now click Checkout in the toolbar (don't click export like I did the first time... this will lead to a non-versioned copy of the project)
  10. Select the folder where you want the project to be stored at. This will be the working copy of the sources that you will work on.
  11. Hit Checkout
  12. Now you should have a copy on your desk. Next step is tell the project that it is a versioned project. Go to the project settings. On the very bottom of the properties page (in the General tab) you can now select the SCM repository. Select the repository that you would like to use.
  13. If you want to you can change the build output to some other directory.
  14. Afterwards you will see that the project file was modified as there is a capital "M" next to the project file (as long as you have selected the SCM preference by right clicking on the file listing)
  15. Now you can commit those changes back to the repository by clicking on "Commit Entire Project" in the SCM menu.
  16. That's it :-) 

No comments: