Developing on Real Devices - atabegruslan/Notes GitHub Wiki

Android

USB Debug:

  • Enable Developer options on Android phone: Settings, About phone, tap Build number 7 times.
  • Enable USB debugging: Settings, Developer options, turn this on, turn on Stay awake, turn on USB debugging.
  • Connect device: Press Allow on phone. Set to the appropriate USB connect options on phone. Download necessary drivers if needed.

Mac

Windows

If you cant see your phone there or in AndroidStudio's Select Deployment Target window, the most likely cause is the driver.

Start, Device Manager: If you see "other devices" with ADB Interface and Android Samsung under it with exclaimation icons beside them, then do:

Manually install ADB Driver:

  1. Device Manager
  2. Right click on faulty ADB interface
  3. Update Driver Software
  4. Browse computer
  5. Pick from a list of device drivers
  6. Select the android_winusb.inf in the unzipped ADB driver that was downloaded from https://dl-ssl.google.com/android/repository/latest_usb_driver_windows.zip
  7. Install

iOS

Run on real device via USB connection

Enable USB debug on iPhone. Easiest way is to use iCareFone

Physically connect iPhone to Mac laptop

On iPhone, you'll also see this warning

https://stackoverflow.com/a/72139989/21917494

If you are using React Native ( and Expo ), then you need to run npx expo run:ios in the terminal too.

Development Build - Internal Distribution Build

eas.json

{
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },

eas build -p ios --profile development

Install expo-dev-client if needed.

When build is finish, you will a first QR code.

Then type es into terminal

You will get a second QR code.

Scan both QR codes. First QR code leads you to install. Second QR code is to do with Expo Server, permitting your Wifi

https://discord.com/channels/452213930350084105/1118811974785040456/1397582575966359613


To Read: