Install Simulator@Simulator
The Android simulator can be installed on MacOSX and Windows; the iOS simulator can only be installed on MacOSX.
iOS Simulator@ios
On MacOSX,please install xcode first before install iOS simulator; or search for xcode in the App store to complete the installation.
Open the xcode installation, press the shortcut key command+,
to open the Preferences
window, as shown below:
As in the above window, click [Locations], click [Command Line Tools]
Run the app on the iOS simulator@run-app-android-emulator
In the project manager, select the project and click the run icon in the toolbar, as shown in the figure below:
The effect of running the app project to the iOS simulator is as follows:
Android Simulator@run-app-ios-simulator
There are many Android simulator on the market, please search one and install by yourself.
Google provide one offcial simulator and you can install different version from Android Studio.
The android studio simulator is shown below:
Run the app on the Android simulator@run-app-android-emulator
After the Android simulator is started, HBuilderX will recognize it as an Android phone with the name emulator-xxxx
, where xxxx is the id of the emulator as shown below:
The effect of running the app project to the android simulator is as follows: