title: XCode simulator: how to make Internet work for apps?
body: <p>I am developing a NativeScript app (i.e. a native app compiled from web languages) and deploying it to XCode (7.2) emulator.</p>
  
  <p>NativeScript uses the Xcode command line tools internally.</p>
  
  <p>I am working under OS X 10.11 (El Captain) and I tried to deploy my app to iPhone 5 and iPhone6 emulators.</p>
  
  <p>The issue I'm getting is that <strong>my app can't reach REST APIs</strong> (get/post/....).
  I'm deploying my APIs using <strong>json-server</strong>.</p>
  
  <p>On Linux with json-server + run to Android emulator it works perfectly so I'm pretty sure <strong>it doesn't depend on json-server or my app code</strong>.</p>
  
  <p>I tried an old solution posted at: <a href="https://stackoverflow.com/questions/13542706/iphone-simulator-cannot-connect-to-internet">iPhone simulator cannot connect to internet</a></p>
  
  <p>Specifically, I've reset simulator settings as well as enabling 'HTTP services' in settings. <strong>The issue is still there</strong>. Any clue?</p>