Is there a way to programmably create an effect like the iOS Network Link Conditioner for your own code, while the code is running?
The specific condition I want to test is "Step 1 of a login flow works, but network cuts out for Step 2". This is hard to test manually, as I guess you'd have to set a breakpoint, turn on Airplane Mode, then resume the app. This introduces observation error since the breakpoint affects the timing and control flow of the app.
Ideally you could set your own delay and dropout parameters similar to the actual Network Link Conditioner, but even just being able to switch network on and off at specific times would be enough.