From 6c7054b5b482b79c7d8a2876f45d7919cec0588f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 24 Feb 2023 13:59:03 +0100 Subject: [PATCH] ios: fix lowercased variable name in Xcode config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some cases might result in failures due to empty shebang: ``` Command PhaseScriptExecution failed with a nonzero exit code ``` Because the script file looks like this: ``` \#! set -o errexit export NODE_BINARY="node" export NODE_ARGS=" --openssl-legacy-provider --max-old-space-size=16384 " bash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1 ``` Signed-off-by: Jakub SokoĊ‚owski --- ios/StatusIm.xcodeproj/project.pbxproj | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ios/StatusIm.xcodeproj/project.pbxproj b/ios/StatusIm.xcodeproj/project.pbxproj index 54c92309e9..3e26645132 100644 --- a/ios/StatusIm.xcodeproj/project.pbxproj +++ b/ios/StatusIm.xcodeproj/project.pbxproj @@ -525,7 +525,7 @@ outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "set -o errexit\nexport NODE_BINARY=\"node\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1"; }; 0F876BD5356F61BF142A01A0 /* [CP] Check Pods Manifest.lock */ = { @@ -546,7 +546,7 @@ "$(DERIVED_FILE_DIR)/Pods-Status-StatusIm-StatusImTests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; @@ -568,7 +568,7 @@ "$(DERIVED_FILE_DIR)/Pods-Status-StatusIm-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; @@ -583,7 +583,7 @@ outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "set -o errexit\nexport NODE_BINARY=\"node\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1"; }; 3AAD2AD724A3A60E0075D594 /* Run Script */ = { @@ -597,7 +597,7 @@ outputPaths = ( ); runOnlyForDeploymentPostprocessing = 1; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1"; }; 3C1038075AE5E6FB86AC2319 /* [CP] Copy Pods Resources */ = { @@ -618,7 +618,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/TOCropViewControllerBundle.bundle", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Status-StatusIm/Pods-Status-StatusIm-resources.sh\"\n"; showEnvVarsInLog = 0; }; @@ -640,7 +640,7 @@ "$(DERIVED_FILE_DIR)/Pods-Status-StatusImPR-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; @@ -662,7 +662,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/TOCropViewControllerBundle.bundle", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Status-StatusIm-StatusImTests/Pods-Status-StatusIm-StatusImTests-resources.sh\"\n"; showEnvVarsInLog = 0; }; @@ -677,7 +677,7 @@ outputPaths = ( ); runOnlyForDeploymentPostprocessing = 1; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1"; }; E732E3E1B024946173BF6D3D /* [CP] Copy Pods Resources */ = { @@ -698,7 +698,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/TOCropViewControllerBundle.bundle", ); runOnlyForDeploymentPostprocessing = 0; - shellpath = "/usr/bin/env sh"; + shellPath = "/usr/bin/env sh"; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Status-StatusImPR/Pods-Status-StatusImPR-resources.sh\"\n"; showEnvVarsInLog = 0; };