Is it possible to disable the network in iOS Simulator?

后端 未结 20 1316
名媛妹妹
名媛妹妹 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:56

    I would suggest you using Charles Proxy app on Mac

    It allows you using Bandwidth Throttle feature that was created just for adjusting network connection

    Star/Stop Throttling ⌘ command + T
    Throttle Settings... ⌘ command + T + ⇧ shift

    *If you create you own Preset via Add Preset with Bandwidth 0 and 0 for Download and upload you can simulate no Internet connection. Also it is very useful to enable it only for some specific hosts

    As an alternative you can disable your connection on Mac because all traffic from Simulator go thought your computer

提交回复
热议问题