Expo / React-Native, Is it there a way to test-run

2020-07-11 07:34发布

问题:

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.

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.

Is it possible to run an app as standalone (without using the Expo client) on iOS?

Note: I'm trying to avoid going through TestFlight for this, that will make my workflow painfully slow. I am using Mac OS.

回答1:

  1. Run exp 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 iOS simulator and run xcrun simctl install booted YourAppName.app