nothing happens after react-native run-ios --device in react native

Viewed 8619

running on my device used to work fine. However, suddenly, when I run react-native run-ios --device, I get to the ending like

  • [[ true != true ]]

** BUILD SUCCEEDED **

installing and launching your app on User’s iPhone...

However, nothing happens after and the app does not get installed in my device.

2 Answers

For me the following worked a while back when I faced a similar issue:

>npm install -g ios-deploy 

>react-native run-ios --device "My iPhone"

I seriously offer you to install ios-deploy by using brew:

brew install ios-deploy

If you installed it by npm before installing by brew uninstall it by the following command:

sudo npm uninstall -g ios-deploy

After having the correct version with the correct installation plug your device and then run the below command:

npx react-native run-ios --device

This current command directly installs the app on the first plugged device to your macOS system. if you plugged several devices then you should pass the name of a targeted device just like below:

npx react-native run-ios --device "DeviceName"
Related