Skip to content

Commit

Permalink
chore: inject node.js openssl option by version
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed May 20, 2024
1 parent b4da171 commit f425122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/ios/SendbirdUIKitSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\nexport ENTRY_FILE=$(pwd)/../index.js\nexport NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh\n";
shellScript = "set -e\n\nNODE_VERSION=$(node -v | cut -d. -f1 | tr -d 'v')\nif [[ \"$NODE_VERSION\" -ge 18 ]]; then\n export NODE_OPTIONS=--openssl-legacy-provider\nfi\n\nexport ENTRY_FILE=$(pwd)/../index.js\nexport NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh\n";
};
0BC6049FD9DFF84AD29163EF /* [CP-User] [RNFB] Core Configuration */ = {
isa = PBXShellScriptBuildPhase;
Expand Down

0 comments on commit f425122

Please sign in to comment.