code: private void processVersionLine(String log) {
      log = log.replace(start, "");
      String[] pieces = log.split(" \\(");
      if (pieces.length == 2) {
        version = pieces[0];
        build = pieces[1].replace(")", "");
        // old builds do not include build info. Xcode 4.3.2 return 1.0 without build info
      } else {
        version = pieces[0];
        build = null;
      }
    }
docs: string parsing to get the version out.