Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 286
Agu Dondo Avatar asked Jul 28 '18 03:07

Agu Dondo


People also ask

How do I run expo app on physical device?

Download Expo Go from the Apple App Store or from the Google Play Store. On your iPhone or iPad, open the default Apple "Camera" app and scan the QR code you see in the terminal. On your Android device, press "Scan QR Code" on the "Home" tab of the Expo Go app and scan the QR code you see in the terminal.

How do I run a React Native app on iOS emulator?

If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios --simulator='iPhone SE (2nd generation)' . The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctl list devices from the console.

Does Expo work on iOS?

On Expo Dev Tools, we can run on Android device/ emulator or iOS simulator.


1 Answers

  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
like image 88
Hien Van Avatar answered Oct 08 '22 21:10

Hien Van