Xcode / cvs authentication problems fixed...
Xcode / cvs authentication problems fixed...
- Subject: Xcode / cvs authentication problems fixed...
- From: Alec Carlson <email@hidden>
- Date: Tue, 14 Feb 2006 12:56:46 -0600
- Thread-topic: Xcode / cvs authentication problems fixed...
Well, I was going to post a message requesting help resolving a cvs
authentication problem within Xcode but I figured out what was wrong. So,
now I'm posting a message that may be helpful to others who have a similar
problem.
My environment:
Xcode 2.2 on OSX 10.4.4
cvs repository is located on a remote source control server and is accessed
using pserver.
There were actually two different problems.
Problem 1. I checked out a project from cvs and as soon as I launch Xcode it
would ask me to authenticate the project. I enter my cvs password, the sheet
gets dismissed (no errors) and then a new sheet drops down asking me to
authenticate again. This cycle continues until I hit the cancel button. Any
further cvs activity causes the authentication sheet to display and even
though I enter my password it never passes authentication. However, all my
cvs terminal scripts for checking files in and out work perfectly - it only
fails in Xcode and only in certain projects !!!
Resolution #1. This one took a while to figure out. The bottom line problem
was that my terminal checkout script for certain projects was incorrect.
The check out line that failed looked like this:
cvs -d :pserver:username@Starwars:/SourceControl/MacCVS/ co MyProject
The checkout line that works looks like this:
cvs -d : pserver:username@Starwars:/SourceControl/MacCVS co MyProject
The extra slash at the end of the directory string was causing the xcode
authentication to always fail. Removing the slash fixed the authentication
problem. Works perfectly now - Go figure...
Problem #2. I checked out a project from cvs and as soon as I launch Xcode
it would ask me to authenticate the project. I enter my cvs password, the
sheet gets dismissed (no errors) and I'm good to go. No more authentication
requests from xcode. Now, however, I go to my cvs terminal script to check
out a different project. Cvs complains that it can't authenticate me and I
should login again. I login again and now cvs (from within terminal) loves
me but the next time I run xcode it asks me to authenticate again. If I
authenticate from xcode, cvs commands in terminal stop working. If I login
using a cvs login command in terminal, xcode stops working.
Resolution #2. This is a weird one. The bottom line is that the xcode
authentication is trashing the encoded password for cvs in the .cvspass
file. If I delete the .cvspass file and do a cvs login from within terminal
the file gets recreated in my user directory with the correct encoded
password. When I authenticate again in xcode, a second authentication line
is added to the .cvspass file but the encoded password on the first line has
been changed. The workaround for this problem is to edit the .cvspass file
and copy the text following the cvs repository directory from the second
line and replace the text on the first line. The text following the
repository directory is your encoded password. If the encoded password text
is not identical on both lines, then you have the problem I described above.
Anyway, I hope this helps with resolving a couple of cvs authentication
issues - it works for me...
Alec Carlson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden