amis-rpc-design/node_modules/@react-native-community/cli-doctor/build/tools/healthchecks/xcode.js

39 lines
1.0 KiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _versionRanges = _interopRequireDefault(require("../versionRanges"));
var _checkInstallation = require("../checkInstallation");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = {
label: 'Xcode',
description: 'Required for building and installing your app on iOS',
getDiagnostics: async ({
IDEs
}) => {
const version = IDEs.Xcode.version.split('/')[0];
return {
needsToBeFixed: (0, _checkInstallation.doesSoftwareNeedToBeFixed)({
version,
versionRange: _versionRanges.default.XCODE
}),
version,
versionRange: _versionRanges.default.XCODE
};
},
runAutomaticFix: async ({
loader,
logManualInstallation
}) => {
loader.fail();
logManualInstallation({
healthcheck: 'Xcode',
url: 'https://developer.apple.com/xcode/'
});
}
};
exports.default = _default;
//# sourceMappingURL=xcode.ts.map