mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
report error when check xcode failed (#16126)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user