如何使用 Expo 在真实的 iOS 设备上运行应用程序? [英] How do I run an app on a real iOS device using Expo?

查看:21
本文介绍了如何使用 Expo 在真实的 iOS 设备上运行应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Expo 来运行我的应用程序.我可以在 Expo XDE 中看到两个选项:

  1. 在 iOS 模拟器上打开
  2. 在安卓上打开

我想通过直接连接到我的设备来运行我的应用程序.世博会可以吗?

解决方案

是的,这是可能的,而且很容易运行.

第 1 步: 打开 Expo XDE,然后单击灰色齿轮将主机模式更改为 LAN.确保您启用了开发模式.您将在您面前看到一个 URL.等到打包程序开始运行.

第 2 步: 在您的移动设备中打开 Expo App,然后点击第二个标签Explore"并输入以 exp:/开头的 URL/192.168... 这是到您计算机的本地连接.您将在一分钟内看到您的应用正在运行.

确保您的手机和电脑在同一个 WiFi 上!

更多信息可以参考官方文档

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

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

解决方案

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.

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.

这篇关于如何使用 Expo 在真实的 iOS 设备上运行应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆