dragonmnl
dragonmnl

Reputation: 15558

XCode simulator: how to make Internet work for apps?

I am developing a NativeScript app (i.e. a native app compiled from web languages) and deploying it to XCode (7.2) emulator.

NativeScript uses the Xcode command line tools internally.

I am working under OS X 10.11 (El Captain) and I tried to deploy my app to iPhone 5 and iPhone6 emulators.

The issue I'm getting is that my app can't reach REST APIs (get/post/....). I'm deploying my APIs using json-server.

On Linux with json-server + run to Android emulator it works perfectly so I'm pretty sure it doesn't depend on json-server or my app code.

I tried an old solution posted at: iPhone simulator cannot connect to internet

Specifically, I've reset simulator settings as well as enabling 'HTTP services' in settings. The issue is still there. Any clue?

Upvotes: 1

Views: 3889

Answers (1)

Mike Resoli
Mike Resoli

Reputation: 967

Check this out. I might have something to do with Apple's Application Transport Security jargon.

Upvotes: 1

Related Questions