Xcode
iOS device
iTunes
debugging
connectivity issues

Xcode doesn't see my iPhone but Finder or iTunes does

Codemia Knowledge Hub ·

If iTunes or Finder can see your iPhone but Xcode cannot, the USB connection is only part of the story. Xcode needs a developer-capable connection with pairing, device support files and a compatible toolchain, so it can fail even while sync and file transfer still work.

Why Xcode needs more than Finder

The problem looks like a cable issue but often is not. Finder and older iTunes builds care mainly about device trust and media-management connectivity. Xcode also needs:

  • a trusted pairing between the Mac and the device
  • a supported iOS version for the installed Xcode build
  • Developer Mode enabled on modern iOS versions
  • working developer services on both the Mac and the phone

So "the phone appears in Finder" does not prove "the phone is ready for app deployment."

Quick checks that solve most cases

  1. Unlock the device and keep it awake.
  2. Tap Trust if the trust prompt appears.
  3. On iOS 16 and later, confirm that Developer Mode is enabled.
  4. Open Xcode and check Window -> Devices and Simulators.
  5. Make sure the installed Xcode version supports the iOS version on the device.

The Xcode support matrix matters more than many people realize. If the phone runs a newer iOS release than your Xcode supports, Finder may still detect it while Xcode refuses it for development.

Developer Mode is another frequent blocker. A phone can charge, sync and appear in Finder while still refusing development until Developer Mode has been enabled and confirmed after restart.

Checking what the developer tools see

Ask the Apple developer tools directly. On newer Xcode versions, devicectl is useful:

bash
xcrun devicectl list devices

If the device appears there, the low-level tools can see it and the issue may be in Xcode state, signing or project settings. If not, focus on pairing, cable quality, USB hubs, device support or services on the Mac.

Confirm which Xcode installation is active:

bash
xcode-select -p
xcodebuild -version

On systems with multiple Xcode versions, the app may be updated while the command-line tools still point to an older installation.

Fixes in order

1. Rule out the physical path

Use a known-good data cable, not a charge-only cable. Connect directly to the Mac rather than through a hub or monitor, and try another USB port. Charging can work even when developer communication is unreliable.

2. Reset trust

On the phone, reset location and privacy settings, reconnect and accept the trust prompt again. Pairing state can go stale even while Finder still shows the device.

3. Restart both devices

Restart the iPhone and the Mac. This resets several device communication services cleanly.

4. Update Xcode for the device's iOS version

If the device runs a newer iOS than your Xcode supports, update Xcode first. Many "device not available" problems are a version mismatch in disguise.

5. Watch the Devices and Simulators window

Open Window -> Devices and Simulators and keep it visible while reconnecting. Xcode often shows a more specific status there than in the toolbar.

Clearing local Xcode state

If the device is still missing, clear some local development state without touching the phone. DerivedData is a common safe cleanup:

bash
rm -rf ~/Library/Developer/Xcode/DerivedData

This forces Xcode to rebuild indexes and project artifacts. It rarely fixes pairing directly, but it can remove stale metadata that confuses deployment.

If multiple Xcode installs may be conflicting, select the one you want:

bash
sudo xcode-select -s /Applications/Xcode.app

Then reopen Xcode and reconnect the device.

Device visible but not usable

Sometimes the device shows in Xcode with a warning such as preparing support files, unavailable support, or locked for development. The connection exists, but developer setup is incomplete. Typical causes:

  • the device is still locked
  • Developer Mode has not been approved after reboot
  • Xcode is downloading or preparing support files
  • signing or team configuration prevents deployment even though the device is visible

This is a different problem from "Xcode cannot see the device at all," and the fixes differ, so work out which one you have.


Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms