title: xcodebuild to notarize mac app and wait for response?
body: <p>I heavily rely on <code>xcodebuild</code> to automate the build process. Developers can now notarize their mac Developer ID apps before distribution, in Xcode 10. </p>
  
  <p>I realize notarisation is an asynchronous process, one which involves waiting for Apple to 'review' and approve the app. In practice this seems to take less than 5 to 10 minutes.</p>
  
  <p>Has anyone been able to automate this using the command line so we don't have to touch or use the Xcode Archiver Window? I cannot find a way. There seems to only be a <code>-exportNotarizedApp</code> option, which presumably only works if you already have the app notarised. No way to request notarization using the command line? </p>