Simulator doesn't connect to test wifi network(No internet)

I have a set of hardware devices in the test network(no internet connection) and have an iOS App that detects all the h/w devices in the test network. Those devices can be seen in the App in iPhone or iPad after connecting idevice to test network only.

I am not connected network cable to my Mac and enabled test wifi network. But whenever I build my App from Xcode 8.0 with iPhone 6 plus with simulator target, Simulator is getting launched but not connecting to any of the network. Which means no hardware devices are displayed in the App. I believe Simulators uses network that what Mac is using, right? I can see all hardware devices in real device. .

Same is happening when I ran my Appium code. I have developed a appium automation code in java and that launches the app in Simulators and displays the all hardware devices that are in test network. But whenever I run my code, Appium able to launch the App simulator but no hardware devices in the App are being displayed. Network settings showing 'NO wifi connection'. My Mac is connected to test network so simulator has to automatically connect to test network and show the hardware devices in the network.


Is anything I am missing during the generating build or this is how it suppose to work?

Could anyone help me to get rid of this would be appreciated.



Thanks in advance,

Shiva.

Simulator doesn't connect to test wifi network(No internet)
 
 
Q