iPhone Simulator - Simulate a slow connection?

前端 未结 6 491
离开以前
离开以前 2021-01-29 18:26

Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network?

6条回答
  •  灰色年华
    2021-01-29 18:49

    It also worth mentioning that Xcode also has a built in way for devices, not simulator.

    • Just go 'Devices and Simulator' (cmmd+shift+2)
    • Select your device
    • Scroll down til you find 'Device Conditions'
    • Set your desired profile
    • Hit Start

    To have this working you need to install 'Network Link Conditioner' on your Mac. See steps mention in Alan's answer

提交回复
热议问题