|
@@ -522,6 +522,7 @@
|
522
|
522
|
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNCWebViewExample" */;
|
523
|
523
|
buildPhases = (
|
524
|
524
|
13B07F871A680F5B00A75B9A /* Sources */,
|
|
525
|
+ 382B320523C3B76000E88E8C /* Launch Packager */,
|
525
|
526
|
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
526
|
527
|
13B07F8E1A680F5B00A75B9A /* Resources */,
|
527
|
528
|
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
|
|
@@ -889,6 +890,24 @@
|
889
|
890
|
shellPath = /bin/sh;
|
890
|
891
|
shellScript = "export NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh\n";
|
891
|
892
|
};
|
|
893
|
+ 382B320523C3B76000E88E8C /* Launch Packager */ = {
|
|
894
|
+ isa = PBXShellScriptBuildPhase;
|
|
895
|
+ buildActionMask = 2147483647;
|
|
896
|
+ files = (
|
|
897
|
+ );
|
|
898
|
+ inputFileListPaths = (
|
|
899
|
+ );
|
|
900
|
+ inputPaths = (
|
|
901
|
+ );
|
|
902
|
+ name = "Launch Packager";
|
|
903
|
+ outputFileListPaths = (
|
|
904
|
+ );
|
|
905
|
+ outputPaths = (
|
|
906
|
+ );
|
|
907
|
+ runOnlyForDeploymentPostprocessing = 0;
|
|
908
|
+ shellPath = /bin/sh;
|
|
909
|
+ shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../../node_modules/react-native/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/../../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
|
|
910
|
+ };
|
892
|
911
|
/* End PBXShellScriptBuildPhase section */
|
893
|
912
|
|
894
|
913
|
/* Begin PBXSourcesBuildPhase section */
|