diff --git a/scripts/native-pack-tool/source/platforms/ios.ts b/scripts/native-pack-tool/source/platforms/ios.ts index a2f69b5f2e..f5747746ca 100644 --- a/scripts/native-pack-tool/source/platforms/ios.ts +++ b/scripts/native-pack-tool/source/platforms/ios.ts @@ -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()) { diff --git a/scripts/native-pack-tool/source/platforms/mac-os.ts b/scripts/native-pack-tool/source/platforms/mac-os.ts index f7ad87dcb0..4a3757e930 100644 --- a/scripts/native-pack-tool/source/platforms/mac-os.ts +++ b/scripts/native-pack-tool/source/platforms/mac-os.ts @@ -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 { diff --git a/scripts/native-pack-tool/source/platforms/mac.ts b/scripts/native-pack-tool/source/platforms/mac.ts index 9f875fa104..0fb29225ae 100644 --- a/scripts/native-pack-tool/source/platforms/mac.ts +++ b/scripts/native-pack-tool/source/platforms/mac.ts @@ -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()) {