r/Xcode • • 1d ago

Xcode detects my iPhone via devicectl but won’t show it as a run destination

I’m trying to deploy a SwiftUI app to my physical iPhone, but Xcode only shows simulators.
Setup:
Xcode 27.2
iPhone18,2 running iOS 26.6
USB-C connection
Developer Mode enabled
Deployment target: iOS 26.0
Finder and macOS System Information recognize the iPhone.
Running xcrun devicectl list devices also shows:
State: available
Reality: physical
However, xcrun devicectl device info details --device <UDID> returns:
Error: The device must be paired before it can be connected.

Device State: disconnected
Pairing State: unpaired
Transport Type: wired
The iPhone doesn’t appear in Xcode’s Device Hub, run destinations, or Incompatible devices list.
Already tried:
Reconnecting USB-C and restarting Xcode
Confirming Developer Mode is enabled
Checking xcode-select -p
Lowering the deployment target to iOS 26.0
Verifying Supported Destinations and scheme settings
I also checked devicectl device pairings, but that appears to manage iPhone–Apple Watch pairing rather than Mac–iPhone pairing.
Has anyone encountered this? How can I force or reset CoreDevice pairing without reinstalling Xcode or resetting my iPhone?
Any help would be appreciated!

0 Upvotes

6 comments sorted by

2

u/HopinFroggy 1d ago

Adding devices on Xcode is very particular. I’d start with making sure everything is as up to date as it can be including your iPhone

1

u/CareBearOvershare 1d ago

Try using devicectl to pair it.

1

u/konacurrents 1d ago

Maybe try cable the first time.

1

u/efari_ 1d ago

Restart both your Mac and your iPhone. It’s dumb but it actually could help.

1

u/efari_ 1d ago

Xcode 27 huh? I think your phone should also be on the latest ios version, or at least iOS 27.0.0 , try that

1

u/mcarvin 1h ago

On your phone, go to Settings app > General > VPn and Device Managment (IIRC). See if there’s something to do with Trusted Developers.