Expo/React-Native,有没有办法在设备/模拟器上测试运行独立的 iOS 应用程序? [英] Expo / React-Native, Is it there a way to test-run standalone iOS apps on a device/simulator?

查看:22
本文介绍了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.

推荐答案

  1. 运行 expo build:ios -t simulator 以创建 iOS 独立模拟器构建.
  2. 等待构建完成,然后下载并解压 YourAppName.tar.gz
  3. 启动 iOS 模拟器并运行 xcrun simctl install booted YourAppName.app
  1. Run expo build:ios -t simulator to create an iOS standalone simulator build.
  2. Wait for build to finish, then download and unpack YourAppName.tar.gz
  3. Start an iOS simulator and run xcrun simctl install booted YourAppName.app

这篇关于Expo/React-Native,有没有办法在设备/模拟器上测试运行独立的 iOS 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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