Skip to content

Commit d441747

Browse files
committed
fix: example iOS app - load .xcode.env and/or .xcode.env.local in bundle task
1 parent c978d9a commit d441747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/swift/SwiftExample.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
);
205205
runOnlyForDeploymentPostprocessing = 0;
206206
shellPath = /bin/sh;
207-
shellScript = "export NODE_BINARY=node\nENTRY_FILE=index.js ../../node_modules/react-native/scripts/react-native-xcode.sh\n";
207+
shellScript = "set -e\nif [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\nsource \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\nsource \"$PODS_ROOT/../.xcode.env.local\"\nfi\nREACT_NATIVE_PATH=\"../../node_modules/react-native\"\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\nENTRY_FILE=index.js\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
208208
};
209209
3922106373FF9547107BB112 /* [CP] Check Pods Manifest.lock */ = {
210210
isa = PBXShellScriptBuildPhase;

0 commit comments

Comments
 (0)