So, after testing my app on my emulator I tried to run it on my device on my phone.
I have enabled the developer option with USB debugging.
whenever I type npm run android
it automatically starts my emulator, even when my actual device is connected to my PC.
It would be really nice if someone point out what could be the issue.
ps. It was working fine before i started the project.
2
Answers
You have to check that the device is properly connected with the PC or not.
Just run a command
adb devices
in terminal.If the device is connected then it will be listed there.
Specify a simulator using the –simulator flag.
These are the available devices for iOS 14.0 onwards:
List all available iOS devices:
xcrun simctl list devices
There is currently no way to set a default.
You can run this like that