What is wrong with you people man I've been bashing my head for two days it just won't work, I'm trying build a React Native app but unable to connect my phone to my macbook local server I have stopped development it's taking out all the enthusiasm out of it. I'm on the edge, everything work when it's xcode building, installing the app but the moment I switch to React Native(Antigravity) it just wont connect, sometime it connects randomly and then is suddenly stops, should I drop everything and just use apple for everything? Why wont you just ban app development outside xcode completely?
Why won't you fix local network connectivity issues?
@vkr981 React Native app is not an Apple app.
Have you tired to connect the iPhone with Xcode? Are you able to demonstrate the issue in a test project created from one of Xcode's templates, and using only Apple APIs?
If not, you should check with the support resources provided by React Native to get assistance with their software.
You can find tips on creating and sharing a test project in Creating a Test Project.
Hope this helps.
Albert WWDR
It’s not about “React Native app” it’s local network I’m unable to connect to local network from iPhone to MacBook.
I'm on the edge, everything works when it's Xcode building, installing the app, but the moment I switch to React Native(Antigravity), it just won’t connect. Sometimes it connects randomly and then suddenly stops.
If your device is plugged into the Mac, try unplugging from the Mac and working entirely over WiFi. Conversely, if you’re not plugged into the Mac, try plugging into the Mac and see if that's more reliable.
The issue here is the plugged-in communication between iOS and Xcode actually works by creating a network route over the USB cable, and that connection can be visible/used by other apps. That can play out in two different ways:
-
Many apps "just work" over it, which can be very useful in situations where WiFi is problematic.
-
Some apps get "confused" by it, since it doesn't really "look" like a typical network.
In the case of #2, you can also try putting the device into airplane mode, as closing off all other network paths can sometimes get broken apps working.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware