title: Run a python HttpServer before run a iOS project in Xcode
body: <p>I’m trying to run a http server before run an iOS project. I've added a script  <code>python -m SimpleHTTPServer 9527</code> in <code>Run Script</code>.
  <a href="https://i.stack.imgur.com/euvdM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/euvdM.png" alt="enter image description here"></a>
  It's OK when I run it in Terminal,
   But when I clicked the <code>Run</code> button in Xcode, it stoped like</p>
  
  <p><a href="https://i.stack.imgur.com/ovETy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ovETy.png" alt="enter image description here"></a></p>
  
  <p>When I stoped the project，Xcode showed some error log:</p>
  
  <p><em>Serving HTTP on 0.0.0.0 port 9527 ...
  Traceback (most recent call last):
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
      "<strong>main</strong>", fname, loader, pkg_name)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
      exec code in run_globals
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 235, in 
      test()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 231, in test
      BaseHTTPServer.test(HandlerClass, ServerClass)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 599, in test
      httpd.serve_forever()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 236, in serve_forever
      poll_interval)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 155, in _eintr_retry
      return func(*args)
  KeyboardInterrupt</em></p>
  
  <p>Please help or try to give some ideas how to achieve this. Thanks in advance.</p>