HomeiOS DevelopmentConstruct failed in Xcode on account of: Command PhaseScriptExecution failed with a...

Construct failed in Xcode on account of: Command PhaseScriptExecution failed with a nonzero exit code


My app challenge fails to construct and I don’t know what’s fallacious?

I attempted toggling the " for set up builds solely " on and off within the construct phases tab, which was recommended in different, older, matters. However did not do something.

Construct failed in Xcode on account of: Command PhaseScriptExecution failed with a nonzero exit code

A bit extra specifics on the error:

bash: -c: line 0: syntax error close to sudden token `3'
bash: -c: line 0: 

`/Customers/app/ios/Pods/../../node_modules/expo/node_modules/expo-constants/ios/../scripts/get-app-config-ios.sh'

get-app-config-ios.sh

    #!/usr/bin/env bash

set -eo pipefail

set -x

DEST="$CONFIGURATION_BUILD_DIR"
RESOURCE_BUNDLE_NAME="EXConstants.bundle"
EXPO_CONSTANTS_PACKAGE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"

# For traditional foremost challenge construct phases integration, will probably be no-op to stop duplicated app.config creation.
#
# `$PROJECT_DIR` is handed by Xcode because the listing to the xcodeproj file.
# in basic foremost challenge setup it's one thing like /path/to/app/ios
# in new model pod challenge setup it's one thing like /path/to/app/ios/Pods
PROJECT_DIR_BASENAME=$(basename $PROJECT_DIR)
if [ "x$PROJECT_DIR_BASENAME" != "xPods" ]; then
  exit 0
fi

# If PROJECT_ROOT just isn't specified, fallback to make use of Xcode PROJECT_DIR
PROJECT_ROOT=${PROJECT_ROOT:-"$PROJECT_DIR/../.."}
PROJECT_ROOT=${PROJECT_ROOT:-"$EXPO_CONSTANTS_PACKAGE_DIR/../.."}

cd "$PROJECT_ROOT" || exit

if [ "$BUNDLE_FORMAT" == "shallow" ]; then
  RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME"
elif [ "$BUNDLE_FORMAT" == "deep" ]; then
  RESOURCE_DEST="$DEST/$RESOURCE_BUNDLE_NAME/Contents/Sources"
  mkdir -p "$RESOURCE_DEST"
else
  echo "Unsupported bundle format: $BUNDLE_FORMAT"
  exit 1
fi

"${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/with-node.sh" "${EXPO_CONSTANTS_PACKAGE_DIR}/scripts/getAppConfig.js" "$PROJECT_ROOT" "$RESOURCE_DEST"

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments