# How to connect to a device?

To help you with device connection with FinalRun you can refer below steps:

### Android

* If you are using Android Emulator:
  * Make sure your emulator is open and is connected to the Internet
  * It's easier to create and setup emulators using Android Studio, if you do not have, check [here](https://developer.android.com/studio)
  * If you already have Android studio, then most probably you must have come across emulators, if not check [here](https://developer.android.com/studio/run/managing-avds) to create and run emulators using Android Studio
* If you are using a physical device:
  * Make sure your device is connected to the laptop via USB cable
  * Make sure your device has enabled Developer Options and USB Debugging, refer [this](https://developer.android.com/studio/debug/dev-options#enable)
  * To help you assist with the test creation and test running we need to install two apps, for which you might or might not receive a prompt on your device like the below, to proceed you need to tap on `Don't send`

<div align="center" data-full-width="true"><figure><img src="https://3741940050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlJodSwxTIBbHmZhKEX5%2Fuploads%2FJHZ67yxSiQZPNiSprPe7%2Fandroid-apk-install-prompt1.png?alt=media&#x26;token=fadb98cc-1d7d-42ab-b5bb-a2d5342ac289" alt="" width="188"><figcaption></figcaption></figure></div>

<figure><img src="https://3741940050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlJodSwxTIBbHmZhKEX5%2Fuploads%2FeUkTpuxm9hwbAZDzTjgB%2Fandroid-apk-install-prompt2.png?alt=media&#x26;token=32be66c4-f531-4d1b-9a27-bbc21b948f8e" alt="" width="188"><figcaption></figcaption></figure>

If you cannot see any devices in the editor, you must ensure that "Verify apps over USB" is disabled in Developer Options.

Also, you need to "Allow USB debugging" when you connect your device for the first time.

<figure><img src="https://3741940050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYlJodSwxTIBbHmZhKEX5%2Fuploads%2FShkifkvdWlXAmxNGn2qB%2FScreenshot_20241216-181507%20(1).png?alt=media&#x26;token=f00f3a8b-9597-43f2-8e81-88f15c37e5d9" alt="" width="188"><figcaption></figcaption></figure>

{% embed url="https://youtu.be/xxFkyLAQCJI" %}

### IOS

* Physical iOS device is not supported.
* For simulators, make sure you have Xcode installed. Check [here](https://developer.apple.com/documentation/safari-developer-tools/installing-xcode-and-simulators) if you do not have Xcode setup.
* Open iOS simulator, ensure it is booted and your system is connected to the Internet.
