Configuring XAMPP on macOS Sierra (version 10.12.6)
I think the problem is that you installed the XAMPP VM version that executes a virtual machine on macOS. Check on the XAMPP website and download the normal version.
Hope this is the case and that this info helps.