'nothing happens after react-native run-ios --device in react native
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.
Solution 1:[1]
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"
Solution 2:[2]
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"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Felix Too |
Solution 2 | AmerllicA |