software-mansion / react-native-ide

https://ide.swmansion.com
Other
718 stars 22 forks source link

The blank Expo project cannot start on the iOS simulator. #227

Open TomWq opened 1 month ago

TomWq commented 1 month ago

*Description I created a brand new Expo project, then ran it on the iOS simulator without performing any other actions. Afterwards, I received a message in the console:

2024-05-09 23:29:56.429 [info] Launching devtools 2024-05-09 23:29:56.430 [info] Launching metro 2024-05-09 23:29:56.433 [info] Devtools started on port 55381 2024-05-09 23:29:56.454 [error] Metro exited unexpectedly Command was killed with SIGKILL (Forced termination): node /Users/wangqiang/.vscode/extensions/swmansion.react-native-ide-0.0.10-beta/lib/expo_start.js --clear 2024-05-09 23:29:56.455 [info] Subprocess node was terminated with SIGKILL 2024-05-09 23:29:56.677 [info] Metro Starting project at /Users/wangqiang/ide-app 2024-05-09 23:29:56.699 [info] Selected device is ready 2024-05-09 23:29:56.780 [error] Subprocess xcrun simctl --set /Users/wangqiang/Library/Caches/com.swmansion.react-native-ide/Devices/iOS shutdown 6B449783-54BB-43EF-B63A-F59F6E87D872 execution resulted in an error: Command failed with exit code 149: xcrun simctl --set /Users/wangqiang/Library/Caches/com.swmansion.react-native-ide/Devices/iOS shutdown 6B449783-54BB-43EF-B63A-F59F6E87D872 An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to shutdown device in current state: Shutdown 2024-05-09 23:29:57.249 [info] Metro Starting Metro Bundler 2024-05-09 23:29:57.396 [info] Metro warning: Bundler cache is empty, rebuilding (this may take a minute) 2024-05-09 23:29:57.400 [info] Metro {"type":"RNIDE_initialize_done","port":55413} 2024-05-09 23:29:57.400 [info] Metro started on port 55413 2024-05-09 23:29:57.424 [info] Metro & devtools ready 2024-05-09 23:30:10.709 [error] Couldn't start device session Command failed with exit code 60: xcrun simctl --set /Users/wangqiang/Library/Caches/com.swmansion.react-native-ide/Devices/iOS boot 6B449783-54BB-43EF-B63A-F59F6E87D872 An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=60): Unable to boot the Simulator. launchd failed to respond. Underlying error (domain=com.apple.SimLaunchHostService.RequestError, code=4): Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding

The Android emulator can be opened successfully, but it crashes immediately and then I can't open the project anymore.

"expo": "~51.0.0", "react-native": "0.74.1",

jakub-gonet commented 1 month ago

What version of RN IDE are you using? 0.0.9-beta have fix for this problem, as described here.

jeroenptrs commented 1 month ago

I had the same issue on 0.0.10-beta

-- Jeroen Peeters

On 9 May 2024 at 19:48:27, Jakub Gonet @.***) wrote:

What version of RN IDE are you using? 0.0.9-beta have fix for this problem, as described here https://github.com/software-mansion/react-native-ide/issues/170#issuecomment-2100626298 .

— Reply to this email directly, view it on GitHub https://github.com/software-mansion/react-native-ide/issues/227#issuecomment-2103139706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AETJJCGH6TDQY7K7NZNJUV3ZBOZGXAVCNFSM6AAAAABHPA44DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGEZTSNZQGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TomWq commented 1 month ago

0.0.10-beta

jakub-gonet commented 1 month ago

I couldn't reproduce iOS issue, can you please try deleting and recreating simulator from the RN IDE?

I can repro Android crash issue though, will look into that.

You can also try one of these:

jeroenptrs commented 1 month ago

That works for me to get that error out of the way. Stumbling upon this right now: 2024-05-10 14:27:19.850 [error] Couldn't start device session Command was killed with SIGABRT (Aborted): /Users/jeroen.peeters/.vscode/extensions/swmansion.react-native-ide-0.0.10-beta/dist/sim-server ios E1D8B749-3095-4D16-972F-AE1C14B747C1 /Users/jeroen.peeters/Library/Caches/com.swmansion.react-native-ide/Devices/iOS

ryanmendoza commented 1 month ago

I'm also having this issue with 0.0.10-beta. Deleting and recreating simulator doesn't seem to help me.

Affects iOS and Android

2024-05-10 17:56:19.298 [error] Couldn't start device session Command was killed with SIGABRT (Aborted): /Users/ryan/.vscode/extensions/swmansion.react-native-ide-0.0.10-beta/dist/sim-server android emulator-5554
TomWq commented 1 month ago

Deleting and recreating simulator doesn't seem to help me.

weldisson commented 1 month ago

i'm having this problem with 0.0.10-beta version .. 2024-05-13 23:54:10.643 [error] Subprocess xcrun simctl list runtimes --json execution resulted in an error: Command failed with exit code 72: xcrun simctl list runtimes --json xcrun: error: unable to find utility "simctl", not a developer tool or in PATH 2024-05-13 23:54:10.732 [error] Command xcrun simctl help execution resulted in an error: Command failed with exit code 72: xcrun simctl help xcrun: error: unable to find utility "simctl", not a developer tool or in PATH

weldisson commented 1 month ago

work for me running this commands on 0.0.10-beta version

➜ ~ sudo rm -rf /Library/Developer/CommandLineTools

➜ ~ xcode-select --install

xcode-select: note: install requested for command line developer tools ➜ ~ xcrun simctl list runtimes --json