Expo / React-Native, Is it there a way to test-run standalone iOS apps on a device/simulator?(Expo/React-Native,有没有办法在设备/模拟器上测试运行独立的 iOS 应用程序?)
问题描述
我正在使用 Expo 来使用 React-Native 编写我的应用程序.我可以在从 Expo 客户端应用程序运行它们的 Android 设备上测试我的应用程序,或者构建一个 APK 并作为独立运行它.
I'm using Expo to code my apps with React-Native. I can test my apps on Android devices running them from the Expo client app or building an APK and running it as standalone.
在 iOS 上,我可以从 Expo 客户端运行我的应用程序,但我找不到独立运行该应用程序的方法.在这种情况下,我想测试原生"facebook 登录功能.
On iOS I can run my app from the Expo client but I couldn't find a way to run the app as standalone. In this case, I would like to test the "native" facebook login functionality.
是否可以在 iOS 上独立运行应用程序(不使用 Expo 客户端)?
注意:我试图避免为此使用 TestFlight,这会使我的工作流程非常缓慢.我正在使用 Mac 操作系统.
Note: I'm trying to avoid going through TestFlight for this, that will make my workflow painfully slow. I am using Mac OS.
推荐答案
- 运行
expo build:ios -t simulator
以创建 iOS 独立模拟器构建. - 等待构建完成,然后下载并解压 YourAppName.tar.gz
- 启动 iOS 模拟器并运行
xcrun simctl install booted YourAppName.app
- Run
expo build:ios -t simulator
to create an iOS standalone simulator build. - Wait for build to finish, then download and unpack YourAppName.tar.gz
- Start an iOS simulator and run
xcrun simctl install booted YourAppName.app
这篇关于Expo/React-Native,有没有办法在设备/模拟器上测试运行独立的 iOS 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Expo/React-Native,有没有办法在设备/模拟器上测试运行独立的 iOS 应用程序?


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