report error when check xcode failed (#16126)

This commit is contained in:
江战
2023-08-29 17:37:16 +08:00
committed by GitHub
parent 0cb410d5da
commit 32a12e12a7
3 changed files with 3 additions and 3 deletions
@@ -85,7 +85,7 @@ export class IOSPackTool extends MacOSPackTool {
async generate() {
if(!await this.checkIfXcodeInstalled()) {
throw new Error(`Please check if Xcode is installed.`);
console.error(`Please check if Xcode is installed.`);
}
if(this.shouldSkipGenerate()) {
@@ -173,7 +173,7 @@ export abstract class MacOSPackTool extends NativePackTool {
const xcodeInstalled = await toolHelper.runCommand('xcode-select', ['-p'], (code, stdout, stderr) => {
if (code === 0) {
console.log(`[xcode-select] ${stdout}`);
if (stdout.indexOf('Xcode.app') > 0) {
if (stdout.indexOf('Xcode') > 0) {
xcodeFound = true;
}
} else {
@@ -23,7 +23,7 @@ export class MacPackTool extends MacOSPackTool {
async generate() {
if(!await this.checkIfXcodeInstalled()) {
throw new Error(`Please check if Xcode is installed.`);
console.error(`Please check if Xcode is installed.`);
}
if(this.shouldSkipGenerate()) {