We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c5c964 commit 4be7486Copy full SHA for 4be7486
packages/host/scripts/patch-xcode-project.rb
@@ -2,8 +2,8 @@
2
# Setting a flag to avoid running this command on every require
3
@exit_hooks_installed = true
4
5
- NODE_PATH ||= `which node`.strip
6
- CLI_COMMAND ||= "'#{NODE_PATH}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
+ NODE_BINARY ||= ENV["NODE_BINARY"] || `command -v node`.strip
+ CLI_COMMAND ||= "'#{NODE_BINARY}' '#{File.join(__dir__, "../dist/node/cli/run.js")}'"
7
PATCH_XCODE_PROJECT_COMMAND ||= "#{CLI_COMMAND} patch-xcode-project '#{Pod::Config.instance.installation_root}'"
8
9
# Using an at_exit hook to ensure the command is executed after the pod install is complete
0 commit comments