您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

run-packager.sh 534B

12345678910111213141516
  1. #!/bin/bash
  2. # This script is executed from Xcode to start the React packager for Debug
  3. # targets.
  4. if [[ "$CONFIGURATION" = "Debug" ]]; then
  5. if nc -w 5 -z localhost 8081 ; then
  6. if ! curl -s "http://localhost:8081/status" | grep -q "packager-status:running" ; then
  7. echo "Port 8081 already in use, packager is either not running or not running correctly"
  8. exit 2
  9. fi
  10. else
  11. open -g "$SRCROOT/../../node_modules/react-native/packager/launchPackager.command" || echo "Can't start packager automatically"
  12. fi
  13. fi