"use strict";
const childProcess = require("./child-process");
function getPathFromXcodeSelect() {
    return childProcess.execSync("xcode-select -print-path").toString().trim();
}
exports.getPathFromXcodeSelect = getPathFromXcodeSelect;
function getXcodeVersionData() {
    let rawData = childProcess.execSync("xcodebuild -version");
    let lines = rawData.toString().split("\n");
    let parts = lines[0].split(" ")[1].split(".");
    return {
        major: parts[0],
        minor: parts[1],
        build: lines[1].split("Build version ")[1]
    };
}
exports.getXcodeVersionData = getXcodeVersionData;
