It is completely supported to use Visual Studio Online and Xcode together, because both of them have support for Git.

Visual Studio Online have, as you probably already know, more features than source control. This is the reason for you to check it out. It also free for teams up to five people.

The first thing you must do, after creating a Visual Studio Online account, is to create a new team project.

clip_image002

The important part here is to choose Git as the version control feature of the project.

The next step is to enable alternate authentication credentials. Xcode doesn’t allow user names that contains a ‘@’.

clip_image004

You do this in your profile, under Credentials.

clip_image006

Enter a secondary user name that does not include a ‘@’.

The third step is to clone or push the repository. You find the url to your projects Git repository under the code tab.

clip_image008

Go to Xcode and open the menu Source Control, choose the menu item that opens a sub menu where you can configure your source control settings. (See screen shot for a better explanation.)

clip_image010

Open the Remote pane and add your Visual Studio Online Git url.

clip_image012

Now you can push your local repository to Visual Studio Online. The first time you do this you need to enter the credentials that you created earlier.

NOTE:

I have had problem doing this the first time from Xcode. An alternative is to do it the first time from a command line. Follow the instructions above how to Push en existing repository.

More information

http://www.visualstudio.com/sv-se/get-started/share-your-xcode-projects-vs