Question: how to connect iphone xr to computer?
Answer: Ensure the iPhone is powered on.
Connect the iPhone to the computer using the supplied USB cable. ... 
In iTunes, select the iPhone under Devices in the left column. ... 
From (Summary) > Options, ensure Sync with this iPhone over Wi-Fi is checked.
Click Done then click Apply.
Click Sync (lower-right).