iPhone simulator - simulate 3G connection

后端 未结 3 839
不思量自难忘°
不思量自难忘° 2020-12-14 08:21

I am testing the Reachability api, but my physical device only has WiFi access, as I don\'t have a phone contract. My code needs to distinguish between being connected to 3

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 09:11

    I dont think that it is a build-in-functionality in iphone-simulator. But I test it sometimes on my device with wifi (and 3g) disabled.

    If you dont have an iPhone but sth. similar (Android for instance) then just enable tethering on your device and use the tethered internet-connection. Then your iPhone-Simulator only gets slow speed ;)

    edit: another idea is to limit the bandwidth of your mac. I found this tool online (have not tested it) which should be able to limit network-traffic (to your local router/modem)

提交回复
热议问题