问题阐述:前几天运行好好的RN程序,今天运行就直接报错了,报错内容如下:(Mac)
Failed to launch the app on simulator, An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown
解决方案:
1. 关于本机 -> 更多信息 -> 存储空间 -> 点击存储空间设置-> 开发者 -> 清除缓存-> 我删除了下面图片中的三项。
2. 然后重新运行
npx react-native run-ios