diff --git a/lib/react-native-xcode.sh b/lib/react-native-xcode.sh index 4a4f7a3..f0e6da7 100755 --- a/lib/react-native-xcode.sh +++ b/lib/react-native-xcode.sh @@ -130,8 +130,10 @@ BUNDLE_FILE="$DEST/main.jsbundle" # XCode randomly generates user specific workspace files whenever it feels like it. # We want these hidden at all times, so go ahead and clean up if they're showing now. -cd "$SCHEMES_MANAGER_DIR/../.." -$NODE_BINARY "$SCHEMES_MANAGER_DIR/index.js" hide-library-schemes +if [[ $SKIP_HIDE_LIB_SCHEMES != true ]]; then + cd "$SCHEMES_MANAGER_DIR/../.." + $NODE_BINARY "$SCHEMES_MANAGER_DIR/index.js" hide-library-schemes +fi if [[ $DEV != true && ! -f "$BUNDLE_FILE" ]]; then echo "error: File $BUNDLE_FILE does not exist. This must be a bug with" >&2