How do I run an app on a real iOS device using Expo?(如何使用 Expo 在真实的 iOS 设备上运行应用程序?)
问题描述
我正在使用 Expo 来运行我的应用程序.我可以在 Expo XDE 中看到两个选项:
- 在 iOS 模拟器上打开
- 在安卓上打开
我想通过直接连接到我的设备来运行我的应用程序.世博会可以吗?
是的,这是可能的,而且很容易运行.
第 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:
- open on iOS simulator
- 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 设备上运行应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 Expo 在真实的 iOS 设备上运行应用程序?


基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01