Xcode crashes when I try to add devices

I am seeing this with Xcode 12.0 (all betas)

Code Block
Process: Xcode [1211]
Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 12.0 (17210.1)
Build Info: IDEFrameworks-17210001000000000~14 (12A8189n)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1211]
User ID: 501
Date/Time: 2020-09-08 16:06:15.967 -0400
OS Version: Mac OS X 10.16 (20A5364e)
Report Version: 12
Bridge OS Version: 5.0 (18P50370a)
Anonymous UUID: 627D7A1F-DDFC-8DCE-8ACF-0ECBAB9020EA
Time Awake Since Boot: 460 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [1211]
Application Specific Information:
ProductBuildVersion: 12A8189n
Crashing on exception: The window has been marked as needing another Update Constraints in Window pass, but it has already had more Update Constraints in Window passes than there are views in the window.
<DVTDevicesWindow: 0x7fbaa5739c30> 0x160 (352) {{181, 204}, {1040, 700}} Devices en
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff2433b0df __exceptionPreprocess + 242
1 DVTFoundation 0x000000010a36eba5 DVTFailureHintExceptionPreprocessor + 424
2 libobjc.A.dylib 0x00007fff2419d469 objc_exception_throw + 48
3 CoreFoundation 0x00007fff2433af43 +[NSException raise:format:] + 189
4 AppKit 0x00007fff26d11119 -[NSWindow(NSDisplayCycle) _postWindowNeedsUpdateConstraintsUnlessPostingDisabled] + 1721
5 AppKit 0x00007fff26cf616d -[NSView
......

Any suggestions on how to get beyond this.
Answered by gibbz in 631459022
I had this issue. In the release notes, it says:


Devices
Known Issues
On macOS 11 beta 5 or later, Xcode may crash when you open the Devices and Simulators window. (66932201)

Workaround: Make sure that you have trusted all mobile devices paired with the Mac, disconnect any devices that you don’t wish to use for development, and set “Show scroll bars” to Always in the General pane of System Preferences.

This fixed the issue for me.



If you only have 8GB ram, add more. If you have less than 75GB free space on your SSD, find more.

If you know how to locate and delete xcode prefs in ~/Library/Preferences, see if that helps.

Restart the machine, create a new sample app, your choice of template, then try to add more devices. Might also try housecleaning Keychain Access.

Otherwise, it and your macOS are betas, crashes come w/territory, so... File bugs, cross fingers and wait to see if the next betas fare better.

Good luck.
Accepted Answer
I had this issue. In the release notes, it says:


Devices
Known Issues
On macOS 11 beta 5 or later, Xcode may crash when you open the Devices and Simulators window. (66932201)

Workaround: Make sure that you have trusted all mobile devices paired with the Mac, disconnect any devices that you don’t wish to use for development, and set “Show scroll bars” to Always in the General pane of System Preferences.

This fixed the issue for me.



That did it, it was the alway on scroll bars! Amazing

Xcode crashes when I try to add devices
 
 
Q