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

查看:161
本文介绍了Expo/React-Native,是否可以在设备/模拟器上测试运行独立的iOS应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Expo使用React-Native编写我的应用程序代码.我可以在通过Expo客户端应用程序运行它们或构建APK并独立运行的Android设备上测试我的应用程序.

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 OS.

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天全站免登陆