Xcode 6.3.2 "forgetting" source control

I just got a new iMac, and installed Xcode 6.3.2 on it. I checked out a copy of my source code repository, and everything runs and builds just fine, but there's one very weird glitch.


When I start up Xcode, everything's normal, I can see which files have been modified, and look at their deltas in the Version Editor.


However, after a couple of minutes (at most), Xcode will suddenly "forget" the source code repository, and mark all my files with ? (indicating that it thinks the file is unversioned).


In the File Inspector, the files now have Version "Not yet committed" and Status "Unversioned", but they also have a Location corresponding to the repository location (e.g. svn+ssh://repo.flim.com/../trunk/Foo/bar.swift since I happen to be using subversion for this project).


From the shell, access to the repository is completely normal - no errors. And if I restart Xcode, everthing works fine - until whatever it is updates, and marks everything as unversioned again.


I've been using this configuration for ages without ever seeing anything like this. I even had to migrate my whole setup to another machine - a similar iMac running the same version of everything - just before getting this new one, with no issues like this at all.


Has anyone seen anything like this before? Or any clues on how to debug it? I have so far had no luck at all finding where Xcode records any log information about source code repository access/errors.

Ok, I've got it sort of narrowed down. I setup a new user on my machine, checked out the source, and opened it with Xcode. No problems.


Then I went to build and run, and hit the "you don't have a profile, import one or revoke and re-issue" dialog. So, I exported the profile from my regular user login, and imported it in the new user. Boom. Shortly all the ?s were showing up on my source files just like on my regular user login. So it's got something to do with whatever was imported. When I exported, I was surprised to find that it exported "4 accounts" - not just the one I was expecting, so there must be something funky in one of those "accounts".


From my usual login, I had previously tried deleting all the accounts (under Xcode->Preferences->Accounts), to no avail. So I've a clue where the problem lies, but still no idea how to fix it easily (and I'm not counting having to create a new account as "easy"!).

FInally figured a workaround of sorts. Xcode seems to be picking up on another SVN repository that I have that is completely unrelated to my xcode projects (it's in a completely unrelated directory). It is included in the list of repositories when I look at Preferences->Accounts. Nothing I could do would convince Xcode to ignore the repository (tried deleting the reposity from the account list, but it would just come back next time I restarted Xcode). Tried disabling the repo. No effect. Still rows of ?s on my source code.


But then I tried removing the other repository (as in: removing the directory containing it - not via Xcode). I then fired up Xcode. This time it popped up a dialog at the beginning, saying:


This workspace includes files from other working copies that are not checked out. Choose Check Out to select additional working copies. Choose Ignore to skip these working copies.


If I then say "Ignore" - voila.. the problem is fixed!


When I get a chance I'll experiment to see whether I can bring back my other repo without Xocde freaking out again.

Might be a long shot, but try repairing system permissions on your HD to see if that helps.

Xcode 6.3.2 "forgetting" source control
 
 
Q