Virtualbox Macos Xcode

You cannot install Xcode directly. A virtual machine (emulation of a computer system) is needed like VMware or VirtualBox. I am currently using VMware workstation pro and Mac OSX is running smoothly in it (although you need at least 8 GB of RAM for that) You can.

  1. Installing Xcode on MacBook or iMac can be easy but installing it on VirtualBox or VMware can be a little tricky. In order to develop new software for Apple, you need to install Xcode for it. There are many options available for software developing for both Windows and Mac. As well as many options are valid on a platform for Linux, Windows or Mac.
  2. Mac OS X build instructions Prerequisites on Mac OS X. 10.10.x (Yosemite) or later running on Intel hardware (PowerPC hardware is not supported nor is building an X11.
I have problems when I connect my iPhone 7 to Mojave OSx (virtualized in VirtualBox). The iPhone is not completely recognized into OSX, as you can see in the attached images when I plugged in, OSx opens photo application, but it doesn't show anything. Also, XCode and Simulator applications don't recognize the iPhone.
I've configured virtualBox USB ports using a filter.
These are the current application versions:

Macos Virtualbox Github

VirtualBox Versión 6.0.2 r128162 (Qt5.6.2)
Mojave version 10.14Macos

Macos Guest Virtualbox

By the what, I have El Capitan OSx versión virtualized and here the iphone is recognized and I can see the content but I can't use on Xcode because the version is older and is not possible update the version.
Please any help will be appreciated