MoFuRo
MoFuRo

Reputation: 231

Set repository for XCode project

I accidentally deleted the repository in the XCode Organizer. I've set up the repository again but how can I tell the project which one it should use because I get this error:

The repository "(null)" could not be reached.

I think it was a little bit easier in Xcode 3.

Upvotes: 3

Views: 3532

Answers (3)

HelloNewman
HelloNewman

Reputation: 11

Checkout your svn project from the command line and remove all .git folders. Then re-check in the project. Once this is done you should be able to checkout the svn project via Xcode's opening splash screen and it should behave normally.

Upvotes: 1

Buzzrick
Buzzrick

Reputation: 833

I've had problems with this before. Xcode and svn don't work terribly nicely all the time.

My solution to fixing Xcode/svn issues that I've had usually involves firstly backing up any changed files, then removing the repository from Xcode, and deleting the working project folder, then re-adding the repository and checking out the project folder again. This give me a clean working copy. At this point then I need to go and manually re-edit any files that I've made changes in from the backups.

It's not the fastest method of fixing these issues, but at least I understand the solution, and can do it fairly easily.

In the case where I've gotten the "the repository (null) could not be reached" error after doing this, I found that actually restarting Xcode made the problem go away.

Upvotes: 0

phlebotinum
phlebotinum

Reputation: 1130

After setting it up again by using "Add working copy..." from the Repository-Tab in the Organizer - restart Xcode4. This worked for me a minute ago with Xcode 4.2

Upvotes: 7

Related Questions