Skip to content

Commit 1b90a93

Browse files
committed
Fix update failing because of
"Could not delete `/Users/civetta/Works/Ekinox/react-pwa-port-adapter/ios/App/build` because it was not created by the build system. note: To mark this directory as deletable by the build system, run `xattr -w com.apple.xcode.CreatedByBuildSystem true"
1 parent dce1204 commit 1b90a93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/ios/update.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ 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}`), 'clean',
153+
...(config.ios.scheme ? ['-scheme', config.ios.scheme] : [])
154+
], {
153155
cwd: config.ios.nativeProjectDirAbs,
154156
});
155157
} else {

0 commit comments

Comments
 (0)