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
841 stars 28 forks source link

Expo: IOS Dependencies are not installed (PODS) #337

Open dreiLDG opened 3 months ago

dreiLDG commented 3 months ago

image I am using expo and when i try to run my app i got this error.

"react-native": "0.73.2", "expo": "^50.0.3",

manssorr commented 3 months ago

same here!

claudioviola commented 3 months ago

same here

chiragramimi commented 2 months ago

same

zwenza commented 2 months ago

I had the same error after adding expo-dev-client and forgetting to run expo run:ios to create a local build:

2024-06-21 12:43:21.008 [info] Selected device is ready
2024-06-21 12:43:21.010 [info] Metro & devtools ready
2024-06-21 12:43:23.764 [info] Check pods in /Users/djoech/Documents/Work/app/ios /Users/djoech/Documents/Work/app
2024-06-21 12:43:23.766 [error] Command pod install execution resulted in an error: A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-06-21 12:43:23.766 [error] Unhandled promise rejection A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-06-21 12:43:24.963 [error] Couldn't start device session A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)

After running

expo run:ios

everything worked again!

ehcorrea commented 2 months ago

I had the same error after adding expo-dev-client and forgetting to run expo run:ios to create a local build:

2024-06-21 12:43:21.008 [info] Selected device is ready
2024-06-21 12:43:21.010 [info] Metro & devtools ready
2024-06-21 12:43:23.764 [info] Check pods in /Users/djoech/Documents/Work/app/ios /Users/djoech/Documents/Work/app
2024-06-21 12:43:23.766 [error] Command pod install execution resulted in an error: A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-06-21 12:43:23.766 [error] Unhandled promise rejection A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-06-21 12:43:24.963 [error] Couldn't start device session A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)

After running

expo run:ios

everything worked again!

Works for android (expo run:android), but ios I have this

image image

***EDIT

In my case works only removing expo-dev-client dependency. I think it happens because when you have it in the project, when you run expo start it goes to Developer Build mode

image

So to resolve this, I remove this lib, only installing it when I want to generate a development build.

image