From 6baa1dcf5f17fbe67ec35f7e721885b8627690ad Mon Sep 17 00:00:00 2001 From: Szymon Rybczak Date: Mon, 17 Apr 2023 15:08:54 +0200 Subject: [PATCH] docs: add missing `--mode` description (#1914) --- packages/cli-platform-ios/README.md | 20 +++++++++++++++++++ .../src/commands/buildIOS/index.ts | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/packages/cli-platform-ios/README.md b/packages/cli-platform-ios/README.md index a336e2ddc..445a47b4c 100644 --- a/packages/cli-platform-ios/README.md +++ b/packages/cli-platform-ios/README.md @@ -47,6 +47,16 @@ react-native run-ios --simulator "iPhone 14" [Deprecated] Explicitly set the scheme configuration to use default: 'Debug'. +#### `--mode ` + +Explicitly set the scheme configuration to use. This option is case sensitive. + +Example: + +```sh +react-native run-ios --mode "Release" +``` + #### `--scheme ` Explicitly set Xcode scheme to use. @@ -127,6 +137,16 @@ react-native build-ios --simulator "iPhone 14" [Deprecated] Explicitly set the scheme configuration to use default: 'Debug'. +#### `--mode ` + +Explicitly set the scheme configuration to use. This option is case sensitive. + +Example: + +```sh +react-native build-ios --mode "Release" +``` + #### `--scheme ` Explicitly set Xcode scheme to use. diff --git a/packages/cli-platform-ios/src/commands/buildIOS/index.ts b/packages/cli-platform-ios/src/commands/buildIOS/index.ts index aa1e1edd9..8b400d99c 100644 --- a/packages/cli-platform-ios/src/commands/buildIOS/index.ts +++ b/packages/cli-platform-ios/src/commands/buildIOS/index.ts @@ -212,7 +212,8 @@ export const iosBuildOptions = [ }, { name: '--mode ', - description: 'Explicitly set the scheme configuration to use', + description: + 'Explicitly set the scheme configuration to use. This option is case sensitive.', }, { name: '--configuration ',