Skip to content

Commit b27a83b

Browse files
motiz88facebook-github-bot
authored andcommitted
Echo shell commands while attempting to start Metro from Xcode
Summary: Changelog: [Internal] Reviewed By: yungsters Differential Revision: D32296662 fbshipit-source-id: 7780f287471325c8aec1793cf8f2089ca14b562f
1 parent 36bbd8f commit b27a83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@
594594
);
595595
runOnlyForDeploymentPostprocessing = 0;
596596
shellPath = /bin/sh;
597-
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../../scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../../scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
597+
shellScript = "set -x\n\nexport RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../../scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../../scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
598598
showEnvVarsInLog = 0;
599599
};
600600
68CD48B71D2BCB2C007E06A9 /* Build JS Bundle */ = {

0 commit comments

Comments
 (0)