react native ios simulator no apps connected. sending reload to all react native apps failed

Viewed 44

As the title of the question says, it was working couple of days ago, but now, whatever I do, I get warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. especially when trying to run on iOS simulator. It works fine on android physical device, it is only on iOS simulator. My app just get stuck on splash screen and after that if I press r on metro bundler to reload, it throws this warning.

Note -> this happens with both npx react-native run-ios command and running with XCode.

What I have tried:

  1. cleaning Pods cache, clean build, build again. (Didn't work).
  2. reinstalling pods, build again. (Didn't work).
  3. using different iOS simulator, same issue.
  4. uninstalling, resinstalling app on simulator, didn't work.
  5. Xcode scheme is set to "Debug" and not "release".
  6. tried running yarn start --reset-cache. (Didn't work).

It is happening on all simulators (iOS only).

package.json:

"dependencies": {
  ...,
  "react": "18.0.0",
  "react-native": "0.69.2",
  ...,
},

What could go wrong? can someone shed some light?

0 Answers
Related