简体   繁体   English

Expo / React-Native,有没有办法在设备/模拟器上测试运行独立的iOS应用程序?

[英]Expo / React-Native, Is it there a way to test-run standalone iOS apps on a device/simulator?

I'm using Expo to code my apps with React-Native.我正在使用 Expo 用 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.我可以在 Android 设备上测试我的应用程序,从 Expo 客户端应用程序运行它们,或者构建一个 APK 并作为独立运行它。

On iOS I can run my app from the Expo client but I couldn't find a way to run the app as standalone.在 iOS 上,我可以从 Expo 客户端运行我的应用程序,但我找不到独立运行应用程序的方法。 In this case, I would like to test the "native" facebook login functionality.在这种情况下,我想测试“原生”facebook 登录功能。

Is it possible to run an app as standalone (without using the Expo client) on iOS?是否可以在 iOS 上独立运行应用程序(不使用 Expo 客户端)?

Note: I'm trying to avoid going through TestFlight for this, that will make my workflow painfully slow.注意:我试图避免为此通过 TestFlight,这会使我的工作流程非常缓慢。 I am using Mac OS.我正在使用 Mac 操作系统。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM