Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/bundle-react-native-code-and-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ if [[ -z "$BUNDLE_COMMAND" ]]; then
export BUNDLE_COMMAND="bundle"
fi

"$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'"
eval "$("$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'")"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run resolved React Native script without eval

Using eval here re-parses the resolved script path as shell code, so paths containing spaces or shell metacharacters (for example, a checkout under /Users/.../Work Projects/...) can fail to execute or be interpreted unexpectedly. This makes iOS bundling brittle on valid local environments; execute the resolved path directly instead of passing it through eval.

Useful? React with 👍 / 👎.

Loading