UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Can't connect iPhone to VM.

Open ghost opened this issue 4 years ago • 9 comments

Describe the issue So, when I connect my iPhone to my VM, it gives me no errors (possibly because I pressed "Always Allow"...) but doesn't show up. If I manually click on "Devices" and toggle "iPhone (0:1)", it gives me this error: could not claim interface 1 (configuration 5): LIBUSB_ERROR_ACCESS. I just want to connect my iPhone to my VM! :(

Ah it seems to be giving me another error. I think there is multiple errors so I list them all here:

Error 1:

  • could not claim interface 1 (configuration 5): LIBUSB_ERROR_ACCESS

Error 2:

  • USB Device [05ac:12a8] at 0-1 disconnected (fatal IO error)

Error 3:

  • Could not open usb device: No such device (it may have been disconnected) [-4]

Configuration

  • UTM Version: v2.1.2
  • OS Version: mOS Big Sur 11.3
  • Intel or Apple Silicon? Apple Silicon

ghost avatar Aug 29 '21 14:08 ghost

Have you tried connecting your phone while the VM is running, and then very quickly clicking to connect it to the VM? If that works then we have a race condition here between macOS claiming the phone and UTM able to grab it.

conath avatar Aug 29 '21 20:08 conath

I think certain devices like the iPhone don't play well with apple's device capture APIs. I think they use a different driver to manage the connection.

osy avatar Aug 29 '21 23:08 osy

Have you tried connecting your phone while the VM is running, and then very quickly clicking to connect it to the VM? If that works then we have a race condition here between macOS claiming the phone and UTM able to grab it.

Nope, not yet anyways.

I think certain devices like the iPhone don't play well with apple's device capture APIs. I think they use a different driver to manage the connection.

Ah ok.

ghost avatar Aug 31 '21 07:08 ghost

I think I found a temporary solution. I say temporary because it is not a real solution, more like a workaround which doesn't work in some cases.

When connecting the iPhone to the Mac, you should see a warning that says "UTM" wants to access "iPhone".

By pressing Always Allow (Allow didn't work for me), UTM is now able to access iPhone. The problem is that this popup message only appears once in a while and disconnecting and reconnecting the iPhone will cause the same error.

Terabyte1385 avatar Mar 29 '22 06:03 Terabyte1385

Look at this! This works for me in spite of tricky operations.

这个方法可行!有点折腾,但总归能干掉 macOS 对 iOS 设备的自动接管。

Zhanyuanium avatar Jan 10 '23 21:01 Zhanyuanium

Also having this issue....

jaspermayone avatar Oct 22 '23 22:10 jaspermayone

Do you guys know of anyway to reset this prompt? I tried TCC reset to no avail :(

TommyTran732 avatar Nov 02 '23 15:11 TommyTran732

Somebody found way how to reset the prompt ?

dobrildobrilov avatar Jan 17 '24 16:01 dobrildobrilov

"Could not open usb device: No such device (it may have been disconnected) [-4]" still occurs with UTM 4.4.5 on Apple Silicon host, running x86_64 Sierra guest and connecting iPhone via USB.

Would be nice if this worked, because I want to use old versions of Image Capture to import photos with JPG conversion (which Apple has removed in new Image Capture versions)

arekkusu42 avatar Apr 19 '24 19:04 arekkusu42