macOS has a command called rvictl. This can be used to transmit network communication from iOS devices to the Mac via a so-called Remote Virtual Interface (RVI). To set up an rvi, we have to have the UDID of an iOS device and of course it has to be connected and paired to the Mac itself. 

  • Step 1: We will pair the iOS device: idevicepair pair
  • Step 2: The trust anchor in pairing has to be formed. 
  • Step 3: The UDID from the iOS device has to be read out: idevice_id -l 
  • Step 4: The virtual interface rvi is set up using the command rvictl and the option -s: rvictl -s <idevice_id> -l
  • Step 5: The connections are set to listen using the command rvictl and the option -l: rvictl -l 
  • Step 6: With the help of tcpdump on the interface rvi0, the complete communication is recorded as a cap file: tcpdump -n -i rvi0