Closed garrettvuky closed 5 months ago
Sometimes it works, sometimes it doesn't. It's a nightmare. 😿
Launching apps is the responsibility of the community CLI, the native build tool (Xcode) or the Expo CLI, depending on your workflow. Metro doesn't deal with any of that at all.
If you open an issue against the respective repo with enough detail, they may be able to help, but this is outside Metro.
My metro was working fine yesterday but after my phone automatically updated overnight when I try to build an app it will install on the device but won't open automatically. I also can't connect to Metro manually by opening the app. It works fine on Android. I'm using zulu-17 through sdkman and node v21.7.3. It isn't working for any react-native app.
I've spent the past 10 hours trying this: I tried to clean my metro cache. I tried to delete node_modules and yarn.lock then yarn install and pod install. I tried to connect to my iPhone's hotspot to ensure a similar connection. I tried clearing my trusted devices I tried to clean my pod cache. I tried to reclone the repo and start from the beginning. I tried switching my xCode from release -> debug. I tried altering various xCode build settings. I tried reinstalling node. I tried updating my iPhone. I tried configuring the bundler to my Mac's ip and port. I reset my entire Macbook and reinstalled everything.
Again, I suspect it had something to do with my iPhone updating overnight because It was working fine yesterday and I didn't touch anything, But I'm unsure of any other options besides wiping my phone.
Update: I tried it using a friend's iPhone on iOS 16 and it launched successfully.