This content originally appeared on DEV Community and was authored by ochieng seth
👋🏿Jambo folks,
Constantly opening Xcode to build your app on a real device is a pain, open your terminal and lets' dive right in.
Step 1
- For whatever weird reason you don't have it yet, install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2
- install ios-deploy
brew install ios-deploy
now what you have been waiting for 😛
- connect your device via usb (of-course) then in terminal,
ios-deploy -c
The result will be
Found 7875****************** (D20AP, <iphone version>, iphoneos, arm64, 1543) a.k.a. '<device name>' connected through USB.
- copy the 7875******************
- now lets build the app with
npx react-native run-ios --udid 7875******************
Hope it helps😊
This content originally appeared on DEV Community and was authored by ochieng seth
ochieng seth | Sciencx (2022-02-10T07:47:06+00:00) How to run a react-native app on a real device using terminal. Retrieved from https://www.scien.cx/2022/02/10/how-to-run-a-react-native-app-on-a-real-device-using-terminal/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.