software-mansion / react-native-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
845 stars 28 forks source link

Cannot run project, IOS Expo #525

Open 985563349 opened 1 week ago

985563349 commented 1 week ago

*Description My project won't run on ios emulator.

Environment

React Native IDE Logs ``` 2024-09-04 10:41:07.384 [info] Found app root folder: /Users/cti/Study/expo-app 2024-09-04 10:41:22.486 [info] Setup dependency checker listeners. 2024-09-04 10:41:22.486 [info] Installing Node Modules 2024-09-04 10:41:22.486 [info] Launching devtools 2024-09-04 10:41:22.486 [info] Launching metro 2024-09-04 10:41:22.501 [info] Devtools started on port 57370 2024-09-04 10:41:22.521 [error] Subprocess /Users/cti/Library/Android/sdk/emulator/emulator -list-avds execution resulted in an error: A system error occurred (Command failed with ENOENT: /Users/cti/Library/Android/sdk/emulator/emulator -list-avds spawn /Users/cti/Library/Android/sdk/emulator/emulator ENOENT) 2024-09-04 10:41:22.521 [error] Error fetching emulators A system error occurred (Command failed with ENOENT: /Users/cti/Library/Android/sdk/emulator/emulator -list-avds spawn /Users/cti/Library/Android/sdk/emulator/emulator ENOENT) 2024-09-04 10:41:22.908 [info] Received checkNodejsInstalled command. 2024-09-04 10:41:22.910 [info] Received checkAndroidEmulatorInstalled command. 2024-09-04 10:41:22.910 [info] Android Emulator installed: false 2024-09-04 10:41:22.916 [info] Received checkXcodeInstalled command. 2024-09-04 10:41:22.925 [info] Received checkCocoaPodsInstalled command. 2024-09-04 10:41:22.926 [info] Received checkNodeModulesInstalled command. 2024-09-04 10:41:22.955 [info] Received checkReactNativeInstalled command. 2024-09-04 10:41:22.955 [info] Check react-native module version. Version found: 0.74.5. Minimum version: 0.71.0 2024-09-04 10:41:22.955 [info] Minimum React Native version installed: true 2024-09-04 10:41:22.956 [info] Received checkExpoInstalled command. 2024-09-04 10:41:22.956 [info] Check expo module version. Version found: 51.0.31. Minimum version: 49.0.0 2024-09-04 10:41:22.956 [info] Minimum Expo version installed: true 2024-09-04 10:41:22.960 [info] Received checkPodsInstalled command. 2024-09-04 10:41:23.000 [info] Nodejs installed: true 2024-09-04 10:41:23.399 [info] Project pods installed: true 2024-09-04 10:41:23.783 [info] Selected device is ready 2024-09-04 10:41:23.894 [info] Xcode Command Line Tools installed: true 2024-09-04 10:41:25.174 [info] Node Modules installed: true 2024-09-04 10:41:25.174 [info] Node Modules installed 2024-09-04 10:41:25.237 [info] CocoaPods installed: true 2024-09-04 10:41:25.320 [info] Node Modules installed: true 2024-09-04 10:41:25.877 [info] Metro Starting project at /Users/cti/Study/expo-app 2024-09-04 10:41:27.568 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"} 2024-09-04 10:41:27.569 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false} 2024-09-04 10:41:27.579 [info] Metro {"type":"RNIDE_initialize_done","port":57380} 2024-09-04 10:41:27.579 [info] Metro started on port 57380 2024-09-04 10:41:27.579 [info] Metro & devtools ready 2024-09-04 10:41:27.794 [info] Device already booted 2024-09-04 10:41:31.872 [info] Metro The following packages should be updated for best compatibility with the installed expo version: 2024-09-04 10:41:31.873 [info] Metro expo-font@12.0.9 - expected version: ~12.0.10 2024-09-04 10:41:31.873 [info] Metro Your project may not work correctly until you install the expected versions of the packages. 2024-09-04 10:41:31.874 [info] Metro Waiting on http://localhost:8081 2024-09-04 10:41:31.874 [info] Metro Logs for your project will appear below. 2024-09-04 10:41:34.569 [info] Metro {"type":"dep_graph_loaded"} 2024-09-04 10:41:34.570 [info] Metro {"type":"transformer_load_started"} 2024-09-04 10:41:34.745 [info] Metro {"type":"transformer_load_done"} 2024-09-04 10:41:34.745 [info] Metro {"type":"initialize_done","port":0} 2024-09-04 10:41:37.118 [info] Will wait for app ready and for preview 2024-09-04 10:41:37.118 [info] Launch preview /Users/cti/.vscode/extensions/swmansion.react-native-ide-0.0.17-darwin-x64/dist/sim-server-executable ios,B073B281-90C4-4580-B20E-2B4BB26B1AAE,/Users/cti/Library/Caches/com.swmansion.react-native-ide/Devices/iOS 2024-09-04 10:41:37.119 [error] Subprocess /Users/cti/.vscode/extensions/swmansion.react-native-ide-0.0.17-darwin-x64/dist/sim-server-executable ios B073B281-90C4-4580-B20E-2B4BB26B1AAE /Users/cti/Library/Caches/com.swmansion.react-native-ide/Devices/iOS execution resulted in an error: A system error occurred (Command failed with Unknown system error -86: /Users/cti/.vscode/extensions/swmansion.react-native-ide-0.0.17-darwin-x64/dist/sim-server-executable ios B073B281-90C4-4580-B20E-2B4BB26B1AAE /Users/cti/Library/Caches/com.swmansion.react-native-ide/Devices/iOS spawn Unknown system error -86) 2024-09-04 10:41:37.120 [error] Couldn't start device session Child process has no stdout ```

截屏2024-09-04 10 46 51

ashtonlance commented 1 week ago

fwiw, I'm running into the same issue after restarting my IDE. It was working fine at EOD yesterday but started throwing the same error as above this morning.