iPhone not recognized in Xcode #571

Open
opened 2025-12-29 01:22:16 +01:00 by adam · 6 comments
Owner

Originally created by @GTTorres04 on GitHub (Mar 8, 2024).

What i have been doing:
I have been trying to make the iPhone recognized by the Xcode in Docker-OSX in order to create an app.

Issue:

The iPhone is recognized on the host computer. I'm following the usbfluxd tutorial and inside the MacOS I know that the device is being recognized by the OS because when I type in the terminal: sudo su and then ideviceinfo, the information of the iphone appears on the screen. However, when i go to System Information > Hardware > USB, the iPhone doesn't appear as connected to the usb port. I also clicked on the Trust this device when it was prompted on the iPhone. When I open Xcode, if i go to Window then Devices and Simulators and then click the + it gives me the following message: No devices found, witch is strange because apparently the device is recognized by the MacOS but not recognized by the Xcode app.

Another strange thing I found is that when the information about the iPhone is being displayed, in the line that says ProductType it shows iPhone 14.2 when the model is an iPhone 13 Pro.

I've tried resetting the iPhone, reseting the Docker-OSX, watching other tutorials in order to solve the problem but nothing worked so far...

Other relevant informations:

  • xCode Version: 15.2
  • iOS Version: 17.3.1
  • MacOS Version: MacOS Ventura 13.6.4
  • Iphone Version (model): iPhone 13 Pro

This might be a possible solution but I am not understanding what I am supposed to do.

Originally created by @GTTorres04 on GitHub (Mar 8, 2024). What i have been doing: I have been trying to make the iPhone recognized by the Xcode in Docker-OSX in order to create an app. Issue: The iPhone is recognized on the host computer. I'm following the **usbfluxd** tutorial and inside the MacOS I know that the device is being recognized by the OS because when I type in the terminal: `sudo su` and then `ideviceinfo`, the information of the iphone appears on the screen. However, when i go to `System Information > Hardware > USB`, the iPhone doesn't appear as connected to the usb port. I also clicked on the **Trust this device** when it was prompted on the iPhone. When I open Xcode, if i go to `Window` then `Devices and Simulators` and then click the `+` it gives me the following message: **No devices found**, witch is strange because apparently the device is recognized by the MacOS but not recognized by the Xcode app. Another strange thing I found is that when the information about the iPhone is being displayed, in the line that says `ProductType` it shows `iPhone 14.2` when the model is an iPhone 13 Pro. I've tried resetting the iPhone, reseting the Docker-OSX, watching other tutorials in order to solve the problem but nothing worked so far... Other relevant informations: - xCode Version: 15.2 - iOS Version: 17.3.1 - MacOS Version: MacOS Ventura 13.6.4 - Iphone Version (model): iPhone 13 Pro [This](https://github.com/foxlet/macOS-Simple-KVM/issues/221#issuecomment-1594563753) might be a possible solution but I am not understanding what I am supposed to do.
Author
Owner

@sickcodes commented on GitHub (Apr 8, 2024):

I made a video about usbfluxd here: https://www.youtube.com/watch?v=kTk5fGjK_PM

@sickcodes commented on GitHub (Apr 8, 2024): I made a video about usbfluxd here: https://www.youtube.com/watch?v=kTk5fGjK_PM
Author
Owner

@AyOhEe commented on GitHub (Oct 30, 2024):

Still an issue. Successfully running Sonoma 14.5 and XCode 16.1, and via usbfluxd an iPhone 16 Pro running iOS 18.1 appears in finder and is correctly detailed by ideviceinfo, but isn't recognised by XCode or xcrun devicectl list devices.

@AyOhEe commented on GitHub (Oct 30, 2024): Still an issue. Successfully running Sonoma 14.5 and XCode 16.1, and via usbfluxd an iPhone 16 Pro running iOS 18.1 appears in finder and is correctly detailed by `ideviceinfo`, but isn't recognised by XCode or `xcrun devicectl list devices`.
Author
Owner

@hello112334 commented on GitHub (Nov 5, 2024):

same issue with Ventura 13.7.1 Xcode 15.2 IPhone SE(2nd) IOS 18.0.
got information successfully from ideviceinfo .
And I found the connected device show in

% xcrun xctrace list devices
== Devices ==
xxx's iMac Pro (xxx-xxx)

== Devices Offline ==
iPhone (18.0.1) (xxx-xxx)

== Simulators ==
...

but

% xcrun devicectl list devices
No devices found.
@hello112334 commented on GitHub (Nov 5, 2024): same issue with `Ventura 13.7.1` `Xcode 15.2` `IPhone SE(2nd) IOS 18.0`. got information successfully from `ideviceinfo` . And I found the connected device show in ``` % xcrun xctrace list devices == Devices == xxx's iMac Pro (xxx-xxx) == Devices Offline == iPhone (18.0.1) (xxx-xxx) == Simulators == ... ``` but ``` % xcrun devicectl list devices No devices found. ```
Author
Owner

@kvandake commented on GitHub (Jan 8, 2025):

I have same issue... When I connected iPhone based iOS 17+
2025-01-08_18-07-53

@kvandake commented on GitHub (Jan 8, 2025): I have same issue... When I connected iPhone based iOS 17+ ![2025-01-08_18-07-53](https://github.com/user-attachments/assets/60f128e3-c713-4ca3-9651-141fc571e4a5)
Author
Owner

@olek-osikowicz commented on GitHub (Mar 1, 2025):

Is there an update on this?

@olek-osikowicz commented on GitHub (Mar 1, 2025): Is there an update on this?
Author
Owner

@nogroup64 commented on GitHub (Jul 21, 2025):

It seems to work when running as root. To me it looks like Apple broke something and they don't care to fix the problem:

> xcrun devicectl list devices
Name   Hostname                                                Identifier                             State         Model
----   -----------------------------------------------------   ------------------------------------   -----------   -----
       THE-NOT-SO-SHORT-DEVICEID.coredevice.local   THE-NOT-SO-SHORT-DEVICEID   unavailable

~
❯ sudo xcrun devicectl list devices
Running devicectl with elevated privileges via sudo is unlikely to work properly. Please do not do this.
Name     Hostname                  Identifier                             State                Model
------   -----------------------   ------------------------------------   ------------------   ----------
iPhone   iPhone.coredevice.local   THE-NOT-SO-SHORT-DEVICEID   available (paired)   iPhone17,1

PS: what I pasted above is from a machine running macOS 15.5, with XCode 16.4 (latest and greatest).

@nogroup64 commented on GitHub (Jul 21, 2025): It seems to work when running as root. To me it looks like Apple broke something and they don't care to fix the problem: ``` > xcrun devicectl list devices Name Hostname Identifier State Model ---- ----------------------------------------------------- ------------------------------------ ----------- ----- THE-NOT-SO-SHORT-DEVICEID.coredevice.local THE-NOT-SO-SHORT-DEVICEID unavailable ~ ❯ sudo xcrun devicectl list devices Running devicectl with elevated privileges via sudo is unlikely to work properly. Please do not do this. Name Hostname Identifier State Model ------ ----------------------- ------------------------------------ ------------------ ---------- iPhone iPhone.coredevice.local THE-NOT-SO-SHORT-DEVICEID available (paired) iPhone17,1 ``` PS: what I pasted above is from a machine running macOS 15.5, with XCode 16.4 (latest and greatest).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#571