I installed Mojave on VMWare. Below are the details.
I downloaded and installed xcode 9 and it was not compatible with this mojave version. How can I get to know about the correct version of xcode for mojave 10.14.4?
For macOS 10.14.4, Xcode versions compatible are: Xcode 10.2 - 11.3.1.
Xcode 11.4 onwards requires macOS Catalina, 10.15.2
With a free Apple Developer account, one can download older versions of Xcode (all the way back to Xcode 2.3 as well as new as 11.5 at https://developer.apple.com/download/more/
Also a nice catalogue: https://xcodereleases.com/