my virtual machine (VMware macOS) doesn't see my iPhone when I connect my iPhone to the computer. Anyone knows how to handle this ? I want to connect just for using my iPhone as simulator.
I think that your iPhone with the lightning connector would be perceived by VMWare as a USB Device, so you could refer to their USB Device documentation. The TL;DR is essentially:
Add the physical usb port to what the vm can "see".
Choose VM > Removable Devices to connect specific USB devices to your virtual machine.
Find the menu item for the usb port the iPhone is plugged into and mouse over it to see the iPhone, then click its name.
I found some additional instructions here which may provide more useful, granular details on how to do this. Pleas note that you will have to take into account the OS of both the host and the guest when following the documentation. Additionally, you may need specific drivers to let the guest addition recognize the iOS device.
Good luck!