[Validator] Fix detection of errors in xcodebuild

Closes https://github.com/CocoaPods/CocoaPods/issues/2579. 

I also changed the validator to correctly report warnings from xcodebuild as warnings rather than notes