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.

Live issues is off for me, and it's doing the "errors in the log, not the navigator" thing

Disabling Live issues in Settings > General solved the problem for me too

Xcode 15 Disabling Live Issues And Debug config worked for me

hardcode solution if your Xcode still works anomaly,

so, it was only partial solution to show inline errors, but if you want your normal Xcode back: move to bin your xcode, For a complete removal of Xcode delete the following:

  1. /Applications/Xcode.app
  2. ~/Library/Caches/com.apple.dt.Xcode
  3. ~/Library/Developer
  4. ~/Library/MobileDevice
  5. ~/Library/Preferences/com.apple.dt.Xcode.plist
  6. /Library/Preferences/com.apple.dt.Xcode.plist
  7. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.bom
  8. /System/Library/Receipts/com.apple.pkg.XcodeExtensionSupport.plist
  9. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.bom
  10. /System/Library/Receipts/com.apple.pkg.XcodeSystemResources.plist
  11. /private/var/db/receipts/com.apple.pkg.Xcode.bom

But instead of 11, open up /private/var/in the Finder and search for "Xcode" to see all the 'dna' left behind... and selectively clean that out too. I would post the pathnames but they will include randomized folder names which will not be the same from my Mac to yours.

And, just to double check:

  • xcrun simctl delete unavailable
  • xcrun simctl shutdown all && xcrun simctl erase all
  • sudo /Developer/Library/uninstall-devtools --mode=all
  • rm -rf ~/Library/*/CoreSimulator
  • sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
  • sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode

install XCode again, if there is lefted simulators, on manage run destinations : remove all simulators, and install again, looks long but no issues after it 😌

issues usually appears after updating Xcode from 13 to 15/14, espessialy if you used filter on issue navigator, looks like incompatibility of versions or so

It happens to me only in the testing target and everything works fine in the main project

All the above didn't work for me. I've an ObjectiveC Project with Cocoapods. I figured out, that the Run Script Phase with the avgtool is causing my problems.

xcrun agvtool next-version -all

is changing my ***/project.pbxproj file and XCode "thinks" to reset/reload all warnings.

I moved the the Run Script Phase before the compile step, but this didn't help; almost every build was canceled.

Any ideas?

XCode 15.2 - if I disable live issues toggle - I get errors on build only, otherwise no errors at all just build fails. Not great. Happened on Xcode 15.1 to 15.2 upgrade for me.

I have the same problem and it's very annoying. I don't know what to do about it. Can anyone recommend something that works?

Still the same issue on after an upgrade to Xcode 15.3 today too.

Strangely though, it just happens to one of my project files. (AppDelegate.swift, so kind of an important one)

I had the same issue as well and was finally able to find the cause of this problem (for me at least). So maybe this helps for everyone else as well, my configurations were named Development & Production by renaming it back to the Debug & Release again there errors remain visible for me even with the live issues checkbox on.

It could be that you only need to rename the Debug configuration but I haven't tested that.

Hi, I've also facing this issue recently in a React Native project (with some errors on the Swift layer). Using Xcode 15.2 in a M1 mac, this answer from StackOverflow has fixed it for me: https://stackoverflow.com/a/76045861/1272263 - basically, you just have to enable/disable the "Show Live Issues" check in Settings -> General

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