Is it possible to disable the network in iOS Simulator?

后端 未结 20 1266
名媛妹妹
名媛妹妹 2020-11-30 15:58

I am trying to debug some inconsistent behaviour I am seeing in an application that gets its primary data from the internet. I don\'t see the issues in the simulator, just

相关标签:
20条回答
  • 2020-11-30 16:57

    Since Xcode does not provide such feature, you will definitely go for some third party application/ tool. Turning off the MAC network will also help to turn off the iOS Simulator network.

    You can turn off you MAC internet from "System Preferences..." > "Network" and turn off the desire network source.

    To turnoff you MAC Ethernet internet source:

    To turnoff you MAC WiFi internet source(if your MAC is on Wifi Internet):

    0 讨论(0)
  • 2020-11-30 16:57

    There are two way to disable IOS Simulator internet:

    • Unplug your network connection
    • Turn Wi-Fi off

    It's the simplest way

    0 讨论(0)
提交回复
热议问题