I’m trying to install Sentry for react-native and am getting the error listed above on iOS. It has to do with the settings under Build Phases > Bundle React Native code and images. The shell script in the documentation located here (https://docs.sentry.io/clients/react-native/manual-setup/#ios) is to use:
export NODE_BINARY=node
export SENTRY_PROPERTIES=sentry.properties
# If you are using RN 0.46+
../node_modules/sentry-cli-binary/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh
However, I get the following error above; unless I reverse it to put react-native-xcode.sh first and then sentry-cli after that. But, I’m not sure that works as intended. It seems to build, though.
export NODE_BINARY=node
export SENTRY_PROPERTIES=sentry.properties
# If you are using RN 0.46+
../node_modules/react-native/scripts/react-native-xcode.sh \
../node_modules/sentry-cli-binary/bin/sentry-cli react-native xcode