Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run project, IOS Expo #525

Closed
985563349 opened this issue Sep 4, 2024 · 4 comments
Closed

Cannot run project, IOS Expo #525

985563349 opened this issue Sep 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@985563349
Copy link

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

Environment

  • React Native IDE: v0.0.17
  • Expo: v51.0.28
  • React Native: v0.74.5
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   [email protected] - 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

@985563349 985563349 added the bug Something isn't working label Sep 4, 2024
@ashtonlance
Copy link

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.

@PanRada
Copy link

PanRada commented Sep 28, 2024

Have this same issue
Environment
React Native IDE: v0.0.19
Expo: v49.0.6

LOGS
2024-09-28 19:57:30.789 [info] Starting Android build 2024-09-28 19:57:30.789 [error] Subprocess ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a assembleDebug --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/buildProgressEvaluation.initscript.gradle --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/configureReactNativeOverrides.initscript.gradle execution resulted in an error: A system error occurred (Command failed with ENOENT: ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a assembleDebug --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/buildProgressEvaluation.initscript.gradle --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/configureReactNativeOverrides.initscript.gradle spawn ./gradlew ENOENT) 2024-09-28 19:57:30.789 [error] Couldn't start device session A system error occurred (Command failed with ENOENT: ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a assembleDebug --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/buildProgressEvaluation.initscript.gradle --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/configureReactNativeOverrides.initscript.gradle spawn ./gradlew ENOENT) 2024-09-28 19:57:30.789 [error] Unhandled promise rejection A system error occurred (Command failed with ENOENT: ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a assembleDebug --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/buildProgressEvaluation.initscript.gradle --init-script /Users/panrada/.cursor/extensions/swmansion.react-native-ide-0.0.19/lib/android/configureReactNativeOverrides.initscript.gradle spawn ./gradlew ENOENT) 2024-09-28 19:57:52.521 [error] Unhandled promise rejection Client not initialized 2024-09-28 19:58:52.632 [error] Unhandled promise rejection Client not initialized

@nateyeazel
Copy link

nateyeazel commented Sep 30, 2024

Have a similar issue with no errors in the logs but still getting stuck on "Waiting for the app to load" in a "create-expo-app" project. It does build and run in an ios simulator normally with npx expo start. When I go to the link on http://127.0.0.1:55908/stream.mjpeg it does look like the app has started to load:
Screenshot 2024-09-30 at 2 17 14 PM

Environment
React Native IDE: v0.0.19
Expo: v51.0.22
React Native: v0.74.3

I installed cocoapods and the application builds without any issues, but the simulator gets stuck:
Screenshot 2024-09-30 at 12 56 14 PM

Logs

2024-09-30 12:45:03.705 [info] Setup dependency checker listeners.
2024-09-30 12:45:03.705 [info] Installing Node Modules
2024-09-30 12:45:03.705 [info] Launching devtools
2024-09-30 12:45:03.705 [info] Launching metro
2024-09-30 12:45:03.705 [info] Checking expo router
2024-09-30 12:45:03.705 [info] Check expo-router module version. Version found: 3.5.20. Minimum version: 0.0.0
2024-09-30 12:45:03.705 [info] Minimum Expo version installed: true
2024-09-30 12:45:03.707 [info] Devtools started on port 54647
2024-09-30 12:45:03.707 [info] Checking storybook
2024-09-30 12:45:03.707 [info] Check @storybook/react-native module version. Module not found.
2024-09-30 12:45:03.707 [info] Storybook installed: false
2024-09-30 12:45:03.779 [info] CLI: xcodebuild -version installed
2024-09-30 12:45:03.787 [info] CLI: xcrun --version installed
2024-09-30 12:45:03.796 [info] Received checkNodejsInstalled command.
2024-09-30 12:45:03.796 [info] Received checkAndroidEmulatorInstalled command.
2024-09-30 12:45:03.796 [info] Android Emulator installed: true
2024-09-30 12:45:03.797 [info] Received checkXcodeInstalled command.
2024-09-30 12:45:03.798 [info] Received checkCocoaPodsInstalled command.
2024-09-30 12:45:03.798 [info] Received checkNodeModulesInstalled command.
2024-09-30 12:45:03.798 [info] Received checkReactNativeInstalled command.
2024-09-30 12:45:03.798 [info] Check react-native module version. Version found: 0.74.3. Minimum version: 0.71.0
2024-09-30 12:45:03.798 [info] Minimum React Native version installed: true
2024-09-30 12:45:03.798 [info] Received checkExpoInstalled command.
2024-09-30 12:45:03.798 [info] Check expo module version. Version found: 51.0.34. Minimum version: 49.0.0
2024-09-30 12:45:03.798 [info] Minimum Expo version installed: true
2024-09-30 12:45:03.798 [info] Received checkPodsInstalled command.
2024-09-30 12:45:03.798 [info] Project pods installed: false
2024-09-30 12:45:03.800 [info] Received checkExpoRouterInstalled command.
2024-09-30 12:45:03.800 [info] Check expo-router module version. Version found: 3.5.20. Minimum version: 0.0.0
2024-09-30 12:45:03.800 [info] Minimum Expo version installed: true
2024-09-30 12:45:03.800 [info] Received checkStorybookInstalled command.
2024-09-30 12:45:03.800 [info] Check @storybook/react-native module version. Module not found.
2024-09-30 12:45:03.800 [info] Storybook installed: false
2024-09-30 12:45:03.822 [info] CLI: node -v installed
2024-09-30 12:45:03.822 [info] Nodejs installed: true
2024-09-30 12:45:03.825 [info] Found Xcode workspace /Users/nathanyeazel/Documents/Projects/cookshelf-app/ios/cookshelfapp.xcworkspace
2024-09-30 12:45:03.873 [info] CLI: xcodebuild -version installed
2024-09-30 12:45:03.880 [info] CLI: xcrun --version installed
2024-09-30 12:45:03.924 [info] CLI: xcrun simctl help installed
2024-09-30 12:45:03.996 [info] CLI: xcrun simctl help installed
2024-09-30 12:45:03.996 [info] Xcode Command Line Tools installed: true
2024-09-30 12:45:04.004 [info] Selected device is ready
2024-09-30 12:45:04.205 [info] Node Modules installed: true
2024-09-30 12:45:04.205 [info] Node Modules installed
2024-09-30 12:45:04.261 [info] Node Modules installed: true
2024-09-30 12:45:04.266 [info] CLI: pod --version installed
2024-09-30 12:45:04.266 [info] CocoaPods installed: true
2024-09-30 12:45:04.340 [info] Metro The /ios project does not contain any URI schemes. Expo CLI will not be able to use links to launch the project. You can configure a custom URI scheme using the --scheme option.
2024-09-30 12:45:04.408 [info] Metro Starting project at /Users/nathanyeazel/Documents/Projects/cookshelf-app
2024-09-30 12:45:04.506 [info] Metro (node:2599) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
2024-09-30 12:45:04.506 [info] Metro (Use node --trace-deprecation ... to show where the warning was created)
2024-09-30 12:45:04.736 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-09-30 12:45:04.736 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-09-30 12:45:04.754 [info] Metro {"type":"RNIDE_initialize_done","port":54648}
2024-09-30 12:45:04.754 [info] Metro started on port 54648
2024-09-30 12:45:04.754 [info] Metro & devtools ready
2024-09-30 12:45:04.872 [info] Metro {"type":"watcher_status","status":{"type":"watchman_warning","warning":"Recrawled this watch 1 time, most recently because:\nMustScanSubDirs UserDroppedTo resolve, please review the information on\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl\nTo clear this warning, run:\nwatchman watch-del '/Users/nathanyeazel/Documents/Projects/cookshelf-app' ; watchman watch-project '/Users/nathanyeazel/Documents/Projects/cookshelf-app'\n","command":"watch-project"}}
2024-09-30 12:45:04.935 [info] Metro {"type":"watcher_status","status":{"type":"watchman_warning","warning":"Recrawled this watch 1 time, most recently because:\nMustScanSubDirs UserDroppedTo resolve, please review the information on\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl\nTo clear this warning, run:\nwatchman watch-del '/Users/nathanyeazel/Documents/Projects/cookshelf-app' ; watchman watch-project '/Users/nathanyeazel/Documents/Projects/cookshelf-app'\n","command":"query"}}
2024-09-30 12:45:05.067 [info] Metro Recrawled this watch 1 time, most recently because:
2024-09-30 12:45:05.067 [info] Metro MustScanSubDirs UserDroppedTo resolve, please review the information on
2024-09-30 12:45:05.067 [info] Metro https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
2024-09-30 12:45:05.067 [info] Metro To clear this warning, run:
2024-09-30 12:45:05.067 [info] Metro watchman watch-del '/Users/nathanyeazel/Documents/Projects/cookshelf-app' ; watchman watch-project '/Users/nathanyeazel/Documents/Projects/cookshelf-app'
2024-09-30 12:45:05.067 [info] Metro
2024-09-30 12:45:05.067 [info] Metro {"type":"dep_graph_loaded"}
2024-09-30 12:45:05.067 [info] Metro {"type":"transformer_load_started"}
2024-09-30 12:45:05.110 [info] Metro {"type":"transformer_load_done"}
2024-09-30 12:45:05.110 [info] Metro {"type":"initialize_done","port":0}
2024-09-30 12:45:06.094 [info] Metro Waiting on http://localhost:8081
2024-09-30 12:45:06.094 [info] Metro Logs for your project will appear below.
2024-09-30 12:45:15.197 [info] Metro [redirect middleware]: Unable to determine redirect location for runtime 'custom' and platform 'ios'
2024-09-30 12:45:15.353 [info] Defaults location /Users/nathanyeazel/Library/Caches/com.swmansion.radon-ide/Devices/iOS/C43731AE-18C0-452D-B39A-875465AAB17B/data/Containers/Data/Application/4977C005-818F-463C-81B9-039266BC6860/Library/Preferences/org.name.cookshelfapp.plist
2024-09-30 12:45:15.578 [info] Will wait for app ready and for preview
2024-09-30 12:45:15.578 [info] Launch preview /Users/nathanyeazel/.vscode/extensions/swmansion.react-native-ide-0.0.19/dist/sim-server-executable ios,--id,C43731AE-18C0-452D-B39A-875465AAB17B,--device-set,/Users/nathanyeazel/Library/Caches/com.swmansion.radon-ide/Devices/iOS
2024-09-30 12:45:15.710 [info] Stream ready http://127.0.0.1:54677/stream.mjpeg
2024-09-30 12:45:15.710 [info] sim-server: stream_ready http://127.0.0.1:54677/stream.mjpeg
2024-09-30 12:45:15.710 [info] sim-server: [2024-09-30T19:45:15Z INFO simulator_server::mjpeg_server] MJPEG server started at http://127.0.0.1:54677/stream.mjpeg

@kmagiera
Copy link
Member

Thanks @nateyeazel for investigating this. Apparently the logs doesn't tell us much, but in the recent version we improved a couple of things and also added better logging. So I'd appreciate if you could try it again with 0.21 version and report if the issue still persist.

Also to avoid duplicates I'll be closing this one – please continue the discussion on #633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants