When attempting to remotely debug an iPhone via USB-C or network connection using Xcode on a Mac, Symantec Endpoint Security (SES) may prevent the connection to the iPhone.
Disabling the SES firewall allows the connection to proceed successfully.
The Mac and iPhone communicate using TCP ephemeral ports.
When these ports are blocked by the SES firewall, the communication between Xcode and the iPhone fails.
If allowing the iPhone's IP address in the firewall rule is not feasible, you can work around the issue by adding a rule to allow communication through the following port ranges: