xed command does not respect xcode-select

Number:rdar://41782306 Date Originated:03-Jul-2018 01:53 PM
Status:Duplicate of 41772865 Resolved:July 5 2018, 9:56 PM
Product:Developer Tools Product Version:Xcode 9.4 (9F1027a) on macOS 10.13.5 (17F77)
Classification:UI/Usability Reproducible:Always
If you have used xcode-select to select a particular version of Xcode as the active version, using `xed .` to open the Xcode project in the current directory won’t necessarily use the version you have selected. It seems to maybe be using a version determined by Launch Services or some possibly nondeterministic mechanism. It should use the output of `xcode-select -p` (or whatever mechanism xcode-select is using) to determine which version of Xcode to use.

Steps to Reproduce:
1. Have both Xcode 9.4 and Xcode 10b2 installed on macOS 10.13.5 (17F77).
2. Use xcode-select -s to switch to Xcode 9.4.
3. Use xed to use Xcode to open an Xcode project in Xcode.
4. Notice that it opens as expected in Xcode 9.4.
5. Use xcode-select -s to switch Xcode 10b2 to the active Xcode.
6. Use xed again.

Expected Results:
xed uses Xcode 10b2.

Actual Results:
xed uses Xcode 9.4.

Xcode 9.4 (9F1027a) on macOS 10.13.5 (17F77)



Message from Apple Developer Relations November 6 2018, 11:24 AM

The original report on your issue has been closed recently. Please note that you will not be able to directly view the original report in order to keep its information confidential.

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!