Xcode 11 does not load .xclangspec files for syntax highlighting

Number:rdar://7321565 Date Originated:9/24/2019
Status:Open Resolved:
Product:Xcode Product Version:11.0 (11A420a)
Classification:Incorrect/Unexpected Behavior Reproducible:Always
Xcode syntax highlighting based on `.xclangspec` files in `~/Library/Developer/Xcode/Specifications/` does not work in Xcode 11. 

To get syntax highlighting in Xcode 11 to work you have to drop stuff directly into the `SourceModel.framework` folder *within* Xcode, which seems mega-fragile.

This is a regression from Xcode 10.3. 

Please list the steps you took to reproduce the issue:

1. Install plugin via the instructions here https://github.com/apollographql/xcode-graphql#manual-installation on Xcode 10.3 (specifically, the `cp GraphQL.xclangspec ~/Library/Developer/Xcode/Specifications/` bit.
2. Have syntax highlighting work great for .graphql files
3. Install plugin via the same instructions on Xcode 11.0
4. No syntax highlighting for graphql files. 

What did you expect to happen?

Syntax highlighting from `xclangspec` files provided in `~/Library/Developer/Xcode/Specifications` should continue to work in new versions of Xcode, or instructions for migration should be provided.

What actually happened?

I needed to use a workaround found in [this dev forums thread](https://forums.developer.apple.com/thread/122901) to get syntax highlighting to work. 

Basically I moved the `xclangspec` to `/Applications/Xcode.app/Contents/SharedFrameworks/SourceModel.framework/Versions/A/Resources/LanguageSpecifications`  and created a brand new `Xcode.SourceCodeLanguage.GraphQL.plist file (basically copying the existing js one) in ``/Applications/Xcode.app/Contents/SharedFrameworks/SourceModel.framework/Versions/A/Resources/LanguageMetadata`. 

This seems fragile as hell though, so it'd be nice to know if there's a better way.


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!