Once-a-year Black Friday deals are coming. Read more.
Give your simulator superpowers

RocketSim: An Essential Developer Tool
as recommended by Apple

Using the Network Link Conditioner Utility (how-to)

The Network Link Conditioner on iOS and macOS enables you to test your app in networking conditions like your users might have while using your app. It allows you to simulate networking conditions like 3G, Edge or High Latency DNS.

You can find a Networking section inside the developer page of the Settings app of iOS. Besides enabling Multipath Networking you can navigate to the Network Link Conditioner, which is disabled by default. You can read more about Multipath Networking here.

Developer Networking Section
Developer Networking Section

A list of default presets can be found on this page. You select a preset by tapping one of them. Enable the switch to test your app on the selected preset. A custom preset fitting your needs can be defined by navigating to the Add a profile page.

Network Link Conditioner Presets
Networking Presets

Stay updated with the best of Swift & SwiftUI

Join over 20,005 Swift developers in SwiftLee Weekly for exclusive tips and updates. Don’t miss out – subscribe now:

You can always unsubscribe, no hard feelings.

Using the developer tool on MacOS

Before you can use the utility on MacOS you need to install Additional Tools for your current Xcode version. By navigating to Xcode Main Menu > Open Developer Tool > More Developers Tools you’re able to download the tools after logging in.

Xcode More Developer Tools
Xcode More Developer Tools

Inside the downloaded .dmg you can find lots of interesting utilities. The Network Link Conditioner can be found inside the Hardware folder. By double-clicking the app you can install the utility in your System Preferences.

The application is quite similar to the iOS variant and also contains a list of custom presets. These can be used to simulate a range of Network conditions. Besides of that, you’re able to define your own preset in the Manage Profiles page.

The Network Link Conditioner on MacOS
The Network Link Conditioner on MacOS

After selecting the preset and enabling the switch you can start testing your Mac OS app or your iOS app in the simulator while simulating the Networking preset. You can now start testing your apps under circumstances your end user might have as well. This is great for finding bugs you would otherwise never encounter.

 
Antoine van der Lee

Written by

Antoine van der Lee

iOS Developer since 2010, former Staff iOS Engineer at WeTransfer and currently full-time Indie Developer & Founder at SwiftLee. Writing a new blog post every week related to Swift, iOS and Xcode. Regular speaker and workshop host.

Are you ready to

Turn your side projects into independence?

Learn my proven steps to transform your passion into profit.