Skip to content

Commit 35bd84a

Browse files
committed
Add scheme (from config) to xcodebuild clean command
1 parent dce1204 commit 35bd84a

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)