【问题标题】:Can't connect iPhone 6 to macOS virtual machine无法将 iPhone 6 连接到 macOS 虚拟机
【发布时间】:2021-02-16 03:53:04
【问题描述】:

我正在尝试使用我的 macOS 虚拟机在 iOS 上测试一个颤振应用程序,但我无法连接我的旧 iPhone 6。上周我能够让它连接一次,但从那时起,只要我插入它,它就会立即与客人断开连接并返回到主机。以下是有关我的设置的一些信息:

  • 主机操作系统:Ubuntu 20.04
  • 来宾操作系统:macOS Big Sur 11.2
  • 手机:iPhone 6、iOS 12.5.1
  • 虚拟化:VMWare player 16.1.0

我将 vm 存储在 2TB 外部 USB 驱动器中

我在我的 vmx 文件中添加了 usb.quirks.device0 = "0x05ac:0x12a8 skip-reset, skip-refresh, skip-setconfig" 行,这至少停止了连接和断开的无限循环。

我已将 vm 设置为 USB 2 并检查了所有选项

如果我将手机插入 USB 3 端口,我会收到驱动程序错误,如果我将其插入 USB 2 端口,我有时会收到一条消息,说设备正忙。

我在 vmware 日志中也收到了类似的消息

2021-02-15T20:41:21.288-07:00| vmx| I005: USBGA: device 1000001d05ac12a8 arrived
2021-02-15T20:41:21.291-07:00| vmx| I005: MsgHint: msg.usb.disconnectHostProcess
2021-02-15T20:41:21.291-07:00| vmx| I005+ The specified device is in use by process:3922 /usr/libexec/gvfs-gphoto2-volume-monitor on the host operating system. Continuing will detach the device from the host operating system.
2021-02-15T20:41:21.291-07:00| vmx| I005+ ---------------------------------------
2021-02-15T20:41:21.297-07:00| vmx| W003: USBGL: failed to claim device (fd=19), interface 0. Retrying
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: disconnect driver 'usbfs' from device 19, interface 0
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: claimed device 19, interface 0 successfully
2021-02-15T20:41:21.297-07:00| vmx| I005: USBGL: Connected device 0x1000001d05ac12a8 successfully
2021-02-15T20:41:21.297-07:00| vmx| I005: USBG: Quirks for device 05ac:12a8 (user-defined,skip-setconfig,skip-reset,skip-refresh,slow-reconnect)
...
2021-02-15T20:41:21.617-07:00| vcpu-1| I005: USBGL: Disable port is not supported.
2021-02-15T20:41:21.719-07:00| vcpu-0| I005: USBG: Skipping device reset for 0x1000001d05ac12a8
2021-02-15T20:41:21.874-07:00| vmx| I005: USBG: Skipping SetConfiguration(1) for 0x1000001d05ac12a8
2021-02-15T20:41:21.879-07:00| vmx| W003: USBGL: failed to set device 19 to config 5: Device or resource busy
2021-02-15T20:41:21.879-07:00| vmx| I005: USBGL: claimed device 19, interface 0 successfully
2021-02-15T20:41:26.578-07:00| vmx| W003: USBGL: failed to submit urb to device 19: Device or resource busy
...
2021-02-15T20:41:26.579-07:00| vmx| W003: USBGL: failed to submit urb to device 19: Device or resource busy
2021-02-15T20:41:53.340-07:00| vmx| I005: USB: Disconnecting device 0x1000001e05ac12a8
2021-02-15T20:41:53.340-07:00| vmx| I005: USBG: Disconnecting 1000001e05ac12a8, port:0 reservedPort:5574C8CD9D20
2021-02-15T20:41:53.340-07:00| vmx| I005: USBGA: device 1000001e05ac12a8 already disconnected from host

iPhone 出现在系统信息中的 USB 下。在 vmware 的可移动设备部分手动连接或断开设备似乎没有任何作用。

是否有任何其他设置我可以更改或我可以尝试让 iPhone 保持与访客 macOS 的连接?

非常感谢!

【问题讨论】:

    标签: iphone macos vmware-player


    【解决方案1】:

    遇到了同样的问题。需要在主机操作系统 (Ubuntu) 中禁用 gvfs-gphoto2-volume-monitor 和 usbmuxd 服务。在此处找到详细解决方案:https://www.insanelymac.com/forum/topic/326555-vmware-cant-connect-iphone/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-14
      • 1970-01-01
      • 1970-01-01
      • 2014-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-26
      相关资源
      最近更新 更多