What output is expected when you run the command? I get:
$ spctl --assess --verbose /Applications/Xcode.app
/Applications/Xcode.app: rejected
source=obsolete resource envelope
I downloaded XCode via the app store, but have disabled gatekeeper (re-enabled it before running this command).