XCode 14 compile errors immediately disappear or do not appear at all

I'm unable to use XCode 14 to develop my app because as soon as a compiler error is shown, it is immediately withdrawn from the Issue Navigator pane. This makes it impossible to see what is wrong. The errors are also immediately withdrawn from the editor.

This video shows 3 attempts to compile the project: after the first attempt no error shows, after the second attempt the error shows for a moment then is automatically removed (no mouse or keypress from me), after the third attempt same.

https://youtu.be/bmK_k6oLYpQ

I have tried rebooting, and deleting ~/Library/Developer/Xcode/DerivedData, to no effect.

Same issue. Please Fix it asap.

Same for one project, not for another

XCode 14.1 RC2 - the problem is still there. Is there still anything we can do? Xcode is completely unusable with this problem not being solved.

I'm having the same issue in the work project, but on personal projects Xcode works fine (same machine). I'm sure that there's some configuration issue somewhere making this trip (we use Cocoapods with ~20 dependencies on the work project). I haven't been able to find exactly what's going on, any tips are much appreciated!

I'm getting this too, on 14.1 RC2. Errors flash-up in the Issue Navigator, then vanish, leaving you with a failed build and no clue as to why. These last couple of Xcode builds have been virtually unusable. Can someone at Apple PLEASE look at this urgently.

Same issue for me, build errors immediately disappear

Same issue here for multiple members of our team. Large modularised codebase, SPM based. Seems to be indexing related. Some errors will show (greyed) for a short time, until an editor is opened on the affected file. Video available —  robb_albright less than a minute ago 

I am seeing the same problem with Xcode 14.1. It is very annoying.

Have to use Xcode 13 because of this problem. Xcode 14.1 in Rosetta mode doesn't have this problem but is too slow. Especially for big projects.

Still happening in 14.1. I feel like Xcode 14 and iOS 16 is the most botched release yet.

I think I found the cause of the problem, on my system anyway...

After a bunch of digging around, I found that the case of the folder associated with the XCode group containing my source code didn't match the case on the file system. (ie. the XCode group "Weather" was associated with "/Users/....../Weather" but the folder on the file system was called "/Users/....../weather".)

When I used the little folder icon in the inspector to re-associate it with the folder, the case was corrected and whammo all my missing error messages suddenly reappeared.

I'm guessing that at sometime along the line of XCode 14 betas, it started caring about case sensitivity, so my project file that used to work fine was now incorrect as far as the linter was concerned.

So: Check that the case of the folders associated with your XCode groups match the file system, and use the little folder icon to correct it if they're not.

Hope this helps!

same in osx ventura 13.0, and now can't open Xcode 13.4.1, this looks like a joke!!

I’m experiencing the same issue on Xcode 14.1, and previously on Xcode 14.0.1 both on Monterey and Ventura. I didn’t find any solution on line so tried to experiment a bit with Xcode settings, and on my computer and my current project this two changes seems to solve the problem:

  • on Settings… panel Behaviors, select “Build”, “Fails” on the left and set Show Navigator Issues on the right
  • on Settings… panel Source Control, clear the “Fetch and refresh server status” flag

I’m aware these don’t seems directly related to the problem, but here this changes appears to work, so I’m posting this suggestion hoping it could help someone else. Let me know. 

Same issue here, reported by most developers on a 80+ person team.

Has Apple acknowledged this issue yet?

This is an error in the native version of Xcode, if you try to open Xcode through Rosseta, the error highlighting is correct again.

XCode 14 compile errors immediately disappear or do not appear at all
 
 
Q