Simulator in Xcode 9 fails to function if Xcode 8 is also installed

Originator:mcohen
Number:rdar://32663408 Date Originated:6/8/2017
Status:Open Resolved:
Product:Xcode Product Version:9
Classification: Reproducible:
 
Summary:
I have the Xcode 8 (App Store) version installed at default location (/Applications/Xcode.app).  I downloaded the WWDC seed of Xcode 9 while at WWDC.  Xcode 9 launches fine.  The Simulator application launches fine, but I see an error dialog: "Error returned in reply: Connection invalid".  iOS never launches in the Simulator.  Simulator requires a force-quit to exit.

I've found two temporary workarounds:

1. Rename the App Store version of Xcode.app to Xcode 8.app
2. Use xcode-select explicitly set my new location (sudo xcode-select -s /Applications/Xcode-beta.app/).

Neither workaround was required when jumping between prior Xcode/Simulator versions.  Typically xcode-select was used for command line tools.  Actually, that's stated specifically in xcode-select ("This directory
controls which tools are used for the Xcode command line tools").  This is a problem for anyone who will be switching between the two versions regularly over the next few months.

Steps to Reproduce:
Install Xcode 8 from App Store
Install Xcode 9 (WWDC seed)
Launch Xcode 9, then launch Simulator from within Xcode 9

Expected Results:
Xcode 9's simulator functions
(and with above workarounds, ability to use multiple Xcode's is preserved)

Observed Results:
Xcode 9's simulator halts with "Error returned in reply: Connection invalid"

Version:
Xcode 9, WWDC seed, macOS 10.12.5.

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!