diff --git a/packages/cli-platform-ios/src/commands/runIOS/index.ts b/packages/cli-platform-ios/src/commands/runIOS/index.ts index c4939715c..8c9b20ece 100644 --- a/packages/cli-platform-ios/src/commands/runIOS/index.ts +++ b/packages/cli-platform-ios/src/commands/runIOS/index.ts @@ -38,6 +38,7 @@ type FlagsT = { port: number; terminal: string | undefined; xcconfig?: string; + buildFolder?: string; }; function runIOS(_: Array, ctx: Config, args: FlagsT) { @@ -320,6 +321,7 @@ function buildProject( xcodeProject.isWorkspace ? '-workspace' : '-project', xcodeProject.name, ...(args.xcconfig ? ['-xcconfig', args.xcconfig] : []), + ...(args.buildFolder ? ['-derivedDataPath', args.buildFolder] : []), '-configuration', args.configuration, '-scheme', @@ -639,5 +641,9 @@ export default { name: '--xcconfig [string]', description: 'Explicitly set xcconfig to use', }, + { + name: '--buildFolder ', + description: 'Location for iOS build artifacts', + }, ], };