Apple Vision Pro Pair With Xcode unknown error occurred

I would like to run a debug program on an actual Apple Vision Pro device, but my Xcode is unable to pair with the real device and it's displaying a generic error message as follow:

When AVP close Remote tab, Xcode device was shown as follow:

Version detail:

  1. macOS version: 14.3.1
  2. Xcode version: 15.2 (15C500b)
  3. visionOS version: 1.0 (21N301) SDK + visionOS 1.0 (21N305) Simulator (Installed)

The first time Apple Vision Pro was paired with my Mac, it worked, but then I manually unpaired my Vision Pro device in Xcode's device list, then it never worked.

Tried:

  • Try reboot AVP and Mac
  • Try change Apple ID
  • Try update Xcode version to 15.3 and update VisionOS 1.1 beta3
  • Try another WIFI
  • Try clean Xcode cache/device ... , and reinstall Xcode
  • Try first start Screen Mirroring on mac

But nothing changed.

The problem has been resolved. The solution: Reset the network configuration on the Mac.

  • cd to /Library/Preferences/SystemConfiguration
  • remove all .plist file except com.apple.Boot.plist
  • reboot mac
  • reconnect your Apple Vision Pro and Mac
Apple Vision Pro Pair With Xcode unknown error occurred
 
 
Q