Xcode cannot connect to iPhone when Symantec Endpoint Security (SES) is installed
search cancel

Xcode cannot connect to iPhone when Symantec Endpoint Security (SES) is installed

book

Article ID: 408483

calendar_today

Updated On:

Products

Endpoint Security Endpoint Security Complete

Issue/Introduction

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.

Environment

  • Xcode on Mac with SES installed
  • iPhone 

Cause

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.

Resolution

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:

  • Protocol: TCP
  • Local Port: 49152-65535
  • Remote Port: 49152-65535
  • Direction: Outgoing