IPhone Connectivity Testing: How do I force it to lose connection?

后端 未结 7 1299
旧时难觅i
旧时难觅i 2021-02-07 11:52

Apple wants me to give the user a friendly apology if I can\'t find an internet connection. Using the Reachability Demo, this was easy enough. I want to take it a step further a

7条回答
  •  半阙折子戏
    2021-02-07 12:27

    You can use the SpeedLimit preference pane to simulate network latency under the simulator. And here's a command line version built on top of the ipfw command.

    The advantage over just yanking the cord or killing WiFi is that you can specify the speed when hitting specific hosts so it can be used for testing without killing your regular network services.

提交回复
热议问题