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

后端 未结 7 1191
旧时难觅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:22

    You could install Apple's Network Link Conditioner

    On Yosemite:

    Network Link Conditioner can be found in the "Hardware IO Tools for Xcode" package. This can be downloaded from the Apple Developer Downloads page. Once the download has finished, open the DMG and double-click "Network Link Condition.prefPane" to install (source).

    With this preferences panel you could create a profile with 0kbps speed.

    Network Link Conditioner

    On older versions of OSX:

    Mountain Lion / Mavericks: Xcode > Open Developer Tool > More Developer Tools
    Lion: /Developer/Applications/Utilities/Network Link Conditioner

提交回复
热议问题