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:
- https://uptodrivers.com/samsung-galaxy-a01-usb-driver-free-download/90393/ (I have Samsung A01)
- https://uptodrivers.com/android-usb-driver/ (Get Google USB Driver in Android Package Manager > SDK tools)
- https://uptodrivers.com/adb-usb-drivers-free-download/ (NEED ADB Driver)
- https://www.youtube.com/watch?v=171KC_K3W4E (Have to manually install ADB Driver)
- https://developer.samsung.com/mobile/android-usb-driver.html (Get Android driver)
- https://uptodrivers.com/adb-usb-drivers-free-download/ (NEED ADB Driver)
- https://uptodrivers.com/android-usb-driver/ (Get Google USB Driver in Android Package Manager > SDK tools)
Manually install ADB Driver:
- Device Manager
- Right click on faulty ADB interface
- Update Driver Software
- Browse computer
- Pick from a list of device drivers
- 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
- 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:
- https://github.com/atabegruslan/Notes/wiki/React-Native-Expo#development-build
- https://github.com/expo/expo/discussions/23358
- https://docs.expo.dev/workflow/overview
- https://www.youtube.com/watch?v=uQCE9zl3dXU
- https://www.youtube.com/watch?v=D612BUtvvl8
- https://expo.dev/orbit
- iOS usb debug (?) https://discord.com/channels/452213930350084105/1121043483768127538/1392550461122281694
- wireless debug
- https://developer.apple.com/documentation/xcode/running-your-app-in-simulator-or-on-a-device#Connect-real-devices-to-your-Mac
- https://reactnative.dev/docs/running-on-device?os=macos
- https://stackoverflow.com/questions/77830902/how-to-run-expo-project-on-an-iphone-that-i-connect-via-usb-c
- See error message on real devices: https://discord.com/channels/452213930350084105/1121043483768127538/1392769185456848938