Skip to content

Commit 87a9bc6

Browse files
author
Capacitor+ Bot
committed
chore: sync upstream PR ionic-team#8188 from @viteinfinite
2 parents 4c7c126 + 35bd84a commit 87a9bc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/ios/update.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ async function updatePodfile(config: Config, plugins: Plugin[], deployment: bool
149149

150150
const isXcodebuildAvailable = await isInstalled('xcodebuild');
151151
if (isXcodebuildAvailable) {
152-
await runCommand('xcodebuild', ['-project', basename(`${config.ios.nativeXcodeProjDirAbs}`), 'clean'], {
152+
await runCommand('xcodebuild', ['-project', basename(`${config.ios.nativeXcodeProjDirAbs}`),
153+
...(config.ios.scheme ? ['-scheme', config.ios.scheme] : []),
154+
'clean'
155+
], {
153156
cwd: config.ios.nativeProjectDirAbs,
154157
});
155158
} else {

0 commit comments

Comments
 (0)