5

I'm using Xcode Version 9.1 (9B55), and it appears that my Comparison Editor is broken. I'm using Git in my project. When I try to turn Comparison Editor on I get following error:

The source control operation failed because the revision “XXXXX” could not be found.

Here is the screenshot of the Xcode interface:

enter image description here

My question is: has anyone of you experienced that and solved it? If so, what is the solution?

Answering possible comments in advance: Git from command line is working as usual, I don't have any external source control editor open while trying to open comparison editor.

Wladek Surala
  • 2,590
  • 1
  • 26
  • 31
  • Has your network environment changed at all? XCode gets weird for me when I am not on my home network (in relation to git). I sometimes have to VPN do do anything with it. – solenoid Nov 22 '17 at 16:14
  • nope, it didn't change. – Wladek Surala Nov 22 '17 at 16:19
  • What if you change the file in Xcode, and then use `git status` in terminal and check if the terminal can detect the changes? – Marina Liu Nov 23 '17 at 03:05
  • @MarinaLiu-MSFT with git command line everything works as expected. Thing is that I'm usually using command line only, it's just that assistance editor is convenient to view old changes. After all, this is not something affecting development, I just wanted to verify out of curiosity if this is happening to others as well. – Wladek Surala Nov 23 '17 at 15:51
  • I'm using xcode 8.2, and has no such issue. – Marina Liu Nov 24 '17 at 07:48
  • I'm on Xcode 9.4.1 and this issue still occurs. – axello Jun 27 '18 at 13:52
  • I am on Xcode 11, same issue. – Zorayr Oct 14 '20 at 23:06

1 Answers1

1

Had the same issue myself. For me, what worked was trying to commit a file via Xcode's source control menu. When I tried to do that, I came across an error saying it was unable to access the git/attributes file on the .config folder on my Mac's user's folder since the permissions were insufficient (have no idea why it changed all of the sudden).

Bottom line: This helped me: Unable to access 'git/attributes'

zaltzy
  • 127
  • 5