When you reboot the full screen Xcode, the top menu disappears.

When you reboot the full screen Xcode, the top menu disappears. It appears when you turn off the full screen. It looks like a bug in Xcode. Is there a solution?

It's not just Xcode.
This is now a system setting, for full-screen apps.

System Preferences > Dock & Menu Bar > Automatically hide and show the menu bar in full screen

When you reboot the full screen Xcode, the top menu disappears.
 
 
Q