Today I got the memo from Apple as probably every other Apple developer about potentially infected Xcode installations. (https://developer.apple.com/news/?id=09222015a)
Depending upon gatekeeper settings.please check gatekeeper settings to allow anywhere and revalidate Xcode.