From 35bd84a68ac3cfa0baedbfba58b9610896fea85f Mon Sep 17 00:00:00 2001 From: Simone Civetta Date: Tue, 21 Oct 2025 12:34:40 +0200 Subject: [PATCH 1/2] Add scheme (from config) to xcodebuild clean command --- cli/src/ios/update.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/src/ios/update.ts b/cli/src/ios/update.ts index e5aaea6c4..da41991ab 100644 --- a/cli/src/ios/update.ts +++ b/cli/src/ios/update.ts @@ -149,7 +149,10 @@ async function updatePodfile(config: Config, plugins: Plugin[], deployment: bool const isXcodebuildAvailable = await isInstalled('xcodebuild'); if (isXcodebuildAvailable) { - await runCommand('xcodebuild', ['-project', basename(`${config.ios.nativeXcodeProjDirAbs}`), 'clean'], { + await runCommand('xcodebuild', ['-project', basename(`${config.ios.nativeXcodeProjDirAbs}`), + ...(config.ios.scheme ? ['-scheme', config.ios.scheme] : []), + 'clean' + ], { cwd: config.ios.nativeProjectDirAbs, }); } else { From 2f9c84c76421ff8a1af750524cc4f6eb023dac6f Mon Sep 17 00:00:00 2001 From: Capacitor+ Bot Date: Fri, 28 Nov 2025 15:01:57 +0000 Subject: [PATCH 2/2] style: auto-format code after upstream sync --- cli/src/ios/update.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/cli/src/ios/update.ts b/cli/src/ios/update.ts index da41991ab..7c7959c02 100644 --- a/cli/src/ios/update.ts +++ b/cli/src/ios/update.ts @@ -149,12 +149,18 @@ async function updatePodfile(config: Config, plugins: Plugin[], deployment: bool const isXcodebuildAvailable = await isInstalled('xcodebuild'); if (isXcodebuildAvailable) { - await runCommand('xcodebuild', ['-project', basename(`${config.ios.nativeXcodeProjDirAbs}`), - ...(config.ios.scheme ? ['-scheme', config.ios.scheme] : []), - 'clean' - ], { - cwd: config.ios.nativeProjectDirAbs, - }); + await runCommand( + 'xcodebuild', + [ + '-project', + basename(`${config.ios.nativeXcodeProjDirAbs}`), + ...(config.ios.scheme ? ['-scheme', config.ios.scheme] : []), + 'clean', + ], + { + cwd: config.ios.nativeProjectDirAbs, + }, + ); } else { logger.warn('Unable to find "xcodebuild". Skipping xcodebuild clean step...'); }