"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IOSSimResolver = void 0;
const path = require("path");
const yok_1 = require("../../../yok");
class IOSSimResolver {
    constructor() {
        this._iOSSim = null;
    }
    get iOSSim() {
        if (!this._iOSSim) {
            this._iOSSim = require(IOSSimResolver.iOSSimName);
        }
        return this._iOSSim;
    }
    get iOSSimPath() {
        return path.join(require.resolve(IOSSimResolver.iOSSimName), "..", IOSSimResolver.iOSStandaloneExecutableName);
    }
}
IOSSimResolver.iOSSimName = "ios-sim-portable";
IOSSimResolver.iOSStandaloneExecutableName = "ios-sim-standalone.js";
exports.IOSSimResolver = IOSSimResolver;
yok_1.injector.register("iOSSimResolver", IOSSimResolver);
