Xcode 12.2 on Big Sur: Crashing when opening Behaviors pane

After upgrading to Big Sur and Xcode 12.2, the app crashes every time I select the behaviors preference pane.

I can see the following error in the crash report:

Code Block
ProductBuildVersion: 12B45b
Crashing on exception: The window has been marked as needing another Layout Window pass, but it has already had more Layout Window passes than there are views in the window.
<NSPanel: 0x7f9a85f69130> 0x9ed (2541) {{545, 363}, {830, 552}} Behaviors en


Anyone else experiencing this?
Same behaviour here.
Xcode 12.4
macbook pro m1
Big sur 11.2.1

open preferences on either external monitor (no they aren't hooked up at the same time) Crashes Xcode both with and without a project open. Move xcode to laptop screen - preferences does not crash the application and everything works fine.
I think I found the answer. Unplug all iOS devices from your computer. Since I've done that, no problems.
Hey,
I found a solution but it's not ideal, but enough for me.
In Mission Control, uncheck "Displays have separate spaces". This seems to work fine. Then to disable the fact that all other screens go black when pressing the green fullscreen button, use this app called "RightZoom" to reroute that button to be used just for the old-style stretching window to fit the screen. Haven't experienced any issues with Xcode since then. Otherwise, with "Displays have separate spaces" enabled, XCode crashes for me every time i open preferences, and also at random points it freezes every 10 mins or so. Works with latest XCode version as of 26/03/2021.

edit:
using MBP 13 from 2018, no touchbar
I have had this issue for a while now.
I submitted feedback to Apple.
Within a few days I got a reply that it should the fixed in Xcode 12.5 beta. I checked, and it's indeed fixed.
Hopefully it will stay like that for now.
Same exact problem. How is that this is still an issue 4 months later? Do you really expect developers to not use external monitors? Get with it Apple....

This bug has been fixed in Xcode 12.5.

Xcode 12.2 on Big Sur: Crashing when opening Behaviors pane
 
 
Q