Skip to content

Commit 50427cd

Browse files
committed
chore: apply review comments to simplify the script
1 parent 056ed2d commit 50427cd

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

packages/platform-ios/template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
);
180180
runOnlyForDeploymentPostprocessing = 0;
181181
shellPath = /bin/sh;
182-
shellScript = "bash -l -c \"${PROJECT_DIR}/bundle-react-native-code-and-images.sh\"\n";
182+
shellScript = "bash -l -c \"${REACT_NATIVE_PATH}/scripts/xcode/with-environment.sh\" \"${PROJECT_DIR}/react-native-xcode.sh\"\n";
183183
};
184184
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
185185
isa = PBXShellScriptBuildPhase;

packages/platform-ios/template/ios/bundle-react-native-code-and-images.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set -e
2+
3+
export CONFIG_CMD="dummy-workaround-value"
4+
export CLI_PATH="$("$NODE_BINARY" --print "require('path').dirname(require.resolve('@rnef/cli/package.json')) + '/dist/src/bin.js'")"
5+
6+
. "$REACT_NATIVE_PATH/scripts/react-native-xcode.sh"

0 commit comments

Comments
 (0)