To set up the Subversion repository in Xcode 4, go to File -> Source Control -> Manage Repositories. After that, you will see the option to add the repository: 
After selecting the Add repository option, you will need to enter the URL of the Subversion repository and the name that you want to add to the repository:

Click "Next", and in the next step you will see the ability to set the paths to your folders in your svn repository. There are three folders that are usually created by default when using svn, and they are called / trunk, / tags, / branch. If you do not have these folders, you can skip this step; this is optional.

You should now see your repository in the sidebar in the Xcode organizer. We would like to add one of our projects to Subversion so that we can use version control for the project. We would like to add the project to the / trunk folder of our repository. To do this, click the / trunk folder and click the import button.

When you click the import button, select the folder with the files you want to import. You will then be prompted to enter a commit message. After that, click "Update" and you will see new files added to your repository.

Your project is now under version control and you can see it in your Beanstalk account in your repository. All you have to do is check the files according to your preferences and open the project from this place.
When you open a project, you will see checkboxes next to all the files that you modify, add or delete, and you will see the ability to commit files.
May it help you
Happy coding.
source share