Xcode debugging crashes in Catalina

I'm seeing a crash in applicationWillFinishLaunching on Catalina when I attempt to debug one of our apps.


It happens with Xcode 10.2 and with the Xcode 11 beta. It doesn't happen on earlier versions of macOS.


This is what appears to cause it:


SetSystemUIMode(kUIModeNormal, 0);


But if I comment that out I get a crash in

NSApplicationMain,
so there's probably some deeper problem. If I build the application and run it outside the debugger it works (except for a problem I raised in another thread).


This happens with both Xcode 10.2 and with the Xcode 11 beta, so it appears to be some interaction between Xcode and the OS.


Has anyone been running into this? Any ideas?



Kevin

I checked this with Xcode 11 beta running on Mojave, and that works fine, so it looks like it's a bug in the Catalina beta.

Xcode debugging crashes in Catalina
 
 
Q