Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run an app on a real iOS device using Expo?

I am using Expo to run my application. I am able to see two options in Expo XDE:

  1. open on iOS simulator
  2. open on Android XDE

I want to run my app by directly connecting to my device. Is it possible with Expo?

like image 704
Ankush Rishi Avatar asked May 02 '17 05:05

Ankush Rishi


People also ask

How do I use Expo go on my mobile device?

There are three main approaches: you can use Expo Go, a development build, or you can run your project as a standalone app. Download Expo Go from the Apple App Store or from the Google Play Store. On your iPhone or iPad, open the default Apple "Camera" app and scan the QR code you see in the terminal.

How to launch Expo client app in a real iOS device?

As the Expo Client App is updated due to new Apple's approval requirements, please follow the steps below to launch the App in a real iOS device: Open MobileSafari in your iOS device. Type the URL shown in Expo XDE (should be something like exp://192.168.123.123:19000). Alternatively, you can click "Share" button in Expo XDE to show a QR Code.

How do I publish my Expo app?

The first step before publishing the Expo app is adding the build information to the app.json file. The required items are: name, icon and version. You also have to add a bundle identifier and build number for iOS and package name and version code for android apps. The Expo team suggests adding also slug – it represents a piece of url for our app.

How do I run an app on a real device?

After you create a project, you can build and run your app on a simulated or real device without needing to lay out the user interface or write code. You may connect a real device to your Mac using a cable, or for iOS or tvOS apps, connect it over WiFi after you pair it with Xcode.


1 Answers

Yes, it is possible, and quite easy to get it running.

Step 1: Open Expo XDE, and click on the gray cog to change host mode to LAN. Make sure you enabled Development Mode. You'll see an URL right in front of you. Wait until packager to start running.

computer

Step 2: Open Expo App in your mobile device, and click on the second tab 'Explore' and enter the URL that starts with exp://192.168... This is a local connection to your computer. You will see your app running in a minute.

Make sure your phone and computer are on the same WiFi!

For further information, you may refer to official documents here.

enter image description here

like image 122
eden Avatar answered Oct 05 '22 06:10

eden