Skip to content

Commit

Permalink
Add Xconfig from option commandline for iOS (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaswatPrabhat committed Oct 21, 2022
1 parent 2d47a1a commit aed2572
Showing 1 changed file with 6 additions and 0 deletions.
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 @@ -37,6 +37,7 @@ type FlagsT = {
verbose: boolean;
port: number;
terminal: string | undefined;
xcconfig?: string;
};

function runIOS(_: Array<string>, ctx: Config, args: FlagsT) {
Expand Down Expand Up @@ -318,6 +319,7 @@ function buildProject(
const xcodebuildArgs = [
xcodeProject.isWorkspace ? '-workspace' : '-project',
xcodeProject.name,
...(args.xcconfig ? ['-xcconfig', args.xcconfig] : []),
'-configuration',
args.configuration,
'-scheme',
Expand Down Expand Up @@ -633,5 +635,9 @@ export default {
'Launches the Metro Bundler in a new window using the specified terminal path.',
default: getDefaultUserTerminal,
},
{
name: '--xcconfig [string]',
description: 'Explicitly set xcconfig to use',
},
],
};

0 comments on commit aed2572

Please sign in to comment.