spctl rejects Xcode 11 beta 1 because of invalid symbolic link destination

Originator:brandon
Number:rdar://6142402 Date Originated:2019-06-10
Status:Open Resolved:
Product:Xcode Product Version:11.0 beta 1 (11M336W)
Classification:Incorrect/Unexpected Behavior Reproducible:Always
 
Please describe the issue:
spctl rejects Xcode 11 beta 1 because of invalid symbolic link destination. After downloading and moving Xcode 11 beta 1 to /Applications/Xcode-11.0.0-beta.app and running `spctl --assess --verbose --type execute /Applications/Xcode-11.0.0-beta.app`, the following result is shown: `/Applications/Xcode-beta.app: rejected (invalid destination for symbolic link in bundle)`. https://developer.apple.com/library/archive/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG208

Please list the steps you took to reproduce the issue:
1. Downloading and move Xcode 11 beta 1 to /Applications/Xcode-11.0.0-beta.app 2. Run `spctl --assess --verbose --type execute /Applications/Xcode-11.0.0-beta.app` 3. Observe: `/Applications/Xcode-11.0.0-beta.app: rejected (invalid destination for symbolic link in bundle)`. A colleague reproduced this result on their computer as well. I'm running 10.14.4 (18E226)

What did you expect to happen?
I also have Xcode 10.2.1 (10E1001) installed and it is approved by spctl. I would expect Xcode 11 to also be approved by spctl based on this experience and my general (potentially incorrect) understanding of Gatekeeper's functionality.

What actually happened?
Xcode 11 was rejected by spctl.

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!