Re: How different is networking on simulator vs device?
Re: How different is networking on simulator vs device?
- Subject: Re: How different is networking on simulator vs device?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 18 Jun 2018 11:02:04 +0100
On 15 Jun 2018, at 18:16, Jens Alfke <email@hidden> wrote:
> at what level does the simulator connect to the host Mac?
That’d be option (a), that is, it connects at the system call level. This has
two important consequences:
* You can’t test code that affects the TCP/IP, like Network Extension providers
* You don’t get the user-space TCP/IP stack that’s present on iOS 11 and later
Outside of the TCP/IP stack there are other differences:
* Wi-Fi level code, like `NEHotspotHelper` and `NEHotspotConfigurationManager`,
can only be tested on a real device.
* HTTPS trust evaluation is done inside an iOS-style security daemon but there
are places where that behaves differently than a real device (for example, when
dealing with revocation).
Having said that, my experience is that for run of the mill apps that use
`NSURLSession`, testing on the simulator is very effective.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden