We'll now look at how we can create emulators and simulators, starting with an iOS simulator and then move on to an Android simulator.
We don't need to create a simulator for Mac; it already comes with Xcode under developer tools. When you start the Appium server for the first time, it will prompt you to authorize the use of Instruments, or if you are running it from npm, run sudo authorize_ios
to work with the simulator.
There are two ways to create an AVD for testing android apps:
Let's create AVD using the command line, as follows:
android list targets
; this will generate a list of available targets.android create avd –n <name of the AVD> -t <targetID which you can get from the first step> --abi <again you can get it from first step>
.You can also customize the AVD with options; visit http://developer.android.com/tools/devices/managing-avds-cmdline.html for more details.
The preceding link can change; if it has changed, then you can search on Google with the keywords "avds command line".
Second, we can create the AVD from the AVD Manager (you can find this under the Android SDK
folder). We need to perform the following steps to create the AVD:
After you complete these steps, the emulator will be displayed under the Android Virtual Devices tab.
18.226.187.194