You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode 4.2 can't commit code by svn?

Hi, all:

I got a problem while using xcode 4.2 to commit source code to the svn server.


The message pop up below:

User uploaded file

The repository "xxxx" could not be reached.

Please verify that the repository is online and reachable and try again


But the svn server is online and I can use the command line in the terminal to commit them, and the organizer shows the server works fine also.

User uploaded file


Is that the bug of the Xcode 4.2 or I got the wrong settings?


I'm using MacBookPro 2011, Lion 10.7.2 and the lion was just new installed.


Thank you!

Jason Cheng

Xcode-OTHER, Mac OS X (10.7.1)

Posted on Oct 12, 2011 5:59 PM

Reply
27 replies

Oct 14, 2011 4:58 PM in response to ShinySteelRobot

UPDATE: It looks like Xcode 4.2 *DOES* work with Svn in some cases, since my Xcode install is able to access a friend's SVN repo. However, I'm at a loss as to why it won't connect to my repo. Both repos are using HTTPS and SVN server 1.6.


AFAICT, the only difference is that my friend's repo has a signed/authorized SSL sertificate and my own repo is merely self-signed....?

Oct 16, 2011 4:26 AM in response to ShinySteelRobot

I have the latest 4.2 running on 10.7.2

now organizer cannot reach my repositories but I can reach some on the web

deleted and recreated mine same problem (it will be briefly green before turning back to red)

deleted entry matching svn or sub in keychain same problem

both of the above still same problem.


If I use the svn cli everything is fine, I can commit, update, etc... without any problem.


the snv in on a 10.6 server, it is version 1.6.16 (r1073529).

The 10.6 server has only a self sign certificate if this has any matter

Oct 17, 2011 2:59 AM in response to ShinySteelRobot

@ShinySteelRobot

This is not entirely true.


I am using the svn:// protocol, and when I try to update or commit my project from Xcode I get the "Repository could not be reached" error. However, from Organizer, I am able to successfully commit or update the project.

I do have another smaller problem when trying to update, I have to click Update twice because the first time it says that the project is up to date.


I will fill in a bug report with Apple also.

Thanks for everything you did on this issue.

Oct 20, 2011 1:44 PM in response to Jiawei Cheng

Getting burned by this as well. That said I've found a workaround using XCode 4 to check files back in to svn.

Instead of using the Project Navigator, use the Organizer:


  1. Choose the folder containing the project you checked out of your svn repository.
  2. At the bottom of the Organizer window, click on the "Commit" icon.
  3. Select the files you want to check in and add your comment.

Oct 20, 2011 9:29 PM in response to Charles Choi

Apple is aware of the issue/bug.

As i said before, For me:

Via Xcode it does not work.

Via organiser it does not work since what ever I do/try my repositories are red.

As I said before, back to the good old cli for now. Of course the draw back is you have to cd to your project first or type the full path and the svn small icons in Xcode do not get updated since my repositories are off line as far xcode is concerned.

Of course it is an inconvenience to loose the integrated 'gui' svn, but eh Life goes on

Oct 25, 2011 2:38 AM in response to Andy Luo

Short answer: Wait for Apple's fix.


If it is practical or/and worth it. You could use external svn if they work fine or if it is ssl issue by a proper certificate for your server, but all these might cost money and time.

Do waht I do, use the good old cli svn update and commit and if you want some gui I use svnx. I agree it is not integrated within xcode but it does the job in the meantime.

Xcode 4.2 can't commit code by svn?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.