Nasty problems in Xcode 26.2: Apple Intelligence crash & Source Code Control Failure

I know this post isn't going to give a lot of details, but what I experienced tonight was so completely weird that I wanted to get it posted here in case others run into it:

FIRST: All was well until I made a trivial change to a large Objective-C++ module. I suddenly got the idea to look at that line in the code review pane, to see if that area of code had ever had recent modifications.

But, the entire module showed up as modified -- one giant change bar, with nothing on the right side of the code review pane, no matter what commit I selected.

Then I noticed that the two lines of code which had all of 4 characters edited were no longer showing any change bars.

Yet, the file showed up as "modified". Still, the exact line changes were not showing in the source code navigator, even though other files showed their changes.

Note I'm connected to our remote repo on github. I did some command line git checks of the local repo, and the changes were there (as yet unstaged).

So -- I figured, I'm gonna ask the Apple Coding Assistant what's up. And it gave some fantastic advice, especially on how to confirm the changes really were in the repo ready to stage and commit and push. Which I did.

But despite following a couple hours of wonderful suggestions, I could never get the change bars back -- for this one specific file!

(yes, the file was in the repo, and in the project -- everything seemed OK with the file itself -- nothing had changed in the project, which compiled and ran perfectly with my changes).

SECOND -- suddenly, the AI assistant seemed to crash Xcode.

When I went to re-run Xcode, it just crashed exactly the same. The crash log indicated "Xcode is crashing inside the IDEIntelligenceChat plugin while it’s trying to “apply changes” to a Source Editor buffer".

Ultimately, I needed to restart Xcode holding down the SHIFT key. I could open other projects, but not the one I had been working on.

So I turned OFF apple Intelligence (thanks, ChatGPT). That allowed me to launch.

It sounds like some sort of corrupt Apple Intelligence chat logs and/or caches, which ChatGPT has given me extensive suggestions for deleting. I don't have the energy to attack that tonight -- I did an additional Time Machine backup and hope to take a closer look tomorrow.

Ideally -- I'd rather NOT lose all my on-going coding assistant chats for this project -- I had some ongoing suggestions I was working on.

But more concerning is the weirdness with changebars affecting this one 7,000 line .mm file. It doesn't seem like there's anything that should affect those change bars for ONE FILE that is in the repo and where changes can be seen from a git diff command line operation.

If it's a bug -- I can live with it. But it's worrisome.

Other than that, Xcode 26.2 has been running great! Unlike 26.1, which insisted on re-compiling all 600 files in my project every time I ran/debugged, 26.2 just does the 2-6 modified files -- a perfect incremental compile. I've saved HOURS of wasted unnecessary compilation since 26.2 was released.

AN UPDATE:

This suggestion (from ChatGPT) resolved the problem of the AI Assistant crashing:

# from the folder that contains your .xcodeproj / .xcworkspace
mv *.xcodeproj/xcuserdata ~/Desktop/xcuserdata_xcodeproj_backup 2>/dev/null
mv *.xcworkspace/xcuserdata ~/Desktop/xcuserdata_xcworkspace_backup 2>/dev/null

There still remains the problem where one specific .mm file will absolutely NOT show its specific changes. I'll continue to investigate.

Nasty problems in Xcode 26.2: Apple Intelligence crash & Source Code Control Failure
 
 
Q