Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SVN in XCode

Tags:

xcode

svn

I am sure this is something stupid, but it has me flummoxed. I have setup SVN to connect to codespaces.com and from the SCM area of xcode, I check it out and it seems to work beautifully.

then I go into xcode and on the status line I get

Error 170001 (Authorization failed) Description: OPTIONS of 'https://[email protected]/smilingsoftware/iDirectory/trunk/Directory/Directory.xcodeproj': authorization failed: Could not authenticate to server: rejected Basic challenge (http://svn.codespaces.com)

I have googled this like crazy and all I get are people complaining on mailing lists of similar problems (different providers) and no answers.

Can anyone suggest something to protect what little hair I have remaining???

Thanks in advance,

Alan

like image 517
Alan Avatar asked Oct 17 '10 02:10

Alan


1 Answers

There might be few reasons for this I guess. Although just recently I ran across the same problem myself after upgrade to Xcode 4. I'm not sure if during the upgrade svn version was updated as well (I see 1.6.5 now). But anyway it was obvious that xcode is not sending correct credentials anymore.

I believe you should try to use svn itself to remedy the situation and "re-cache" the credentials.

Change to your working folder in terminal. Run svn st to see if you have changes. Then use svn commit -m "checkin comment" and if you have the same problem I had, you'll see first auth attempt with your "local" login name. If there is no such account on svn, it will offer you to enter login name and password for svn now.

After that, it started to work in xcode as well.

I published a bit more of detail on my blog.

like image 110
Stanislav Dvoychenko Avatar answered Sep 26 '22 03:09

Stanislav Dvoychenko