Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: customise ios build folder location with buildFolder flag #1729

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/cli-platform-ios/src/commands/runIOS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type FlagsT = {
port: number;
terminal: string | undefined;
xcconfig?: string;
buildFolder?: string;
};

function runIOS(_: Array<string>, ctx: Config, args: FlagsT) {
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -639,5 +641,9 @@ export default {
name: '--xcconfig [string]',
description: 'Explicitly set xcconfig to use',
},
{
name: '--buildFolder <string>',
description: 'Location for iOS build artifacts',
},
],
};