utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.25k stars 1.35k forks source link

Can't connect iPhone to VM. #3063

Open ghost opened 3 years ago

ghost commented 3 years ago

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:

Error 2:

Error 3:

Configuration

conath commented 3 years ago

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.

osy commented 3 years ago

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.

ghost commented 3 years ago

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.

Terabyte1385 commented 2 years ago

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.

Zhanyuanium commented 1 year ago

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

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

jaspermayone commented 1 year ago

Also having this issue....

TommyTran732 commented 1 year ago

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

dobrildobrilov commented 10 months ago

Somebody found way how to reset the prompt ?

arekkusu42 commented 7 months ago

"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)