React Native iOS could not connect to development server - ios

I get the common Could not connect to development server error described in e.g. React-native iOS: Could not connect to development server. Things that are working:
My iOS device is built fine using Xcode and launching
The URL inside the app shows correctly (192.168.4.59:8082/index.bundle?platform=iOS&dev=true) and opening that URL in the browser loads the bundle as it should
The phone and laptop are on the same wifi
Killed node process and restarted npm with --reset-cache
Restarted xcode, iphone and computer (many times)
What might I be doing wrong?

It worked to use a USB cable instead of wifi and untick "Connect via Network" in Xcode > Devices And Simulators window.

Related

ReactNative access denied when Mac is connected to VPN

Launching application ReactNative on a ios simulator gives erros when Mac is connected to VPN :
Access Denied (policy_denied)
On device it's work fine, if a disable VPN it's works
I tried to delete all folded nodes_module, pods, ,lock files launch several times but still the same problem
I launch the app from xCode i also try to launch it from terminal but nothing changed
Any help will be appreciated
On simulator i click on
cmd + d
configure bundle
after i put the ip adress of my Mac adress 192.168... and it works

React-native iOS: Could not connect to development server

After restarting Wi-Fi router my local ip has changed from "192.168.1.4" to "192.168.1.3" so I've changed it in AppDelegate.m to
"http://192.168.1.3:8081/index.bundle?platform=ios&dev=true&minify=false"
But I still get error on real device:
Could not connect to development server ...
URL http://192.168.1.3:8081/index.bundle?platform=ios&dev=true&minify=false
When I shake my phone and configure bundler to the same IP 192.168.1.3 and port 8081 app loads successfully. But Fast Refresh is not working and I need to build app and configure bundler every time I make changes in my code.
I also checked "http://192.168.1.3:8081/index.bundle?platform=ios&dev=true&minify=false" in my browser and on another computer in my local network and it works fine. Tried to load the same link on mobile browser with no success.
All devices are using the same network.
I have already tried:
cleaned tmp folders and watchman
cleaned iOS build folder
removed and reinstalled node_modules and pods
killed node process and restarted npm with --reset-cache
restarted xcode, iphone and computer (many times)
reinstalled watchman
set "Connect via Network" in Xcode Devices window
That was issue with expo-splash-screen package which doesn't work on new iOS version. The fact that app was not able to run after wifi restart was just a coincidence. I have seen some non-permanent warnings about splashscreen in Xcode logs but didn't take it seriously.
Removed 'expo-splash-screen' package and everything works fine.
It helped me a lot: https://github.com/facebook/react-native/issues/31369

Connecting to OpenVPN server using iOS 13.3 does not work as it used to

I have iOS ver. 13.3 installed on my iPhone X. I also have an OpenVPN server configured at home that can be reached from the Internet. I also have the latest OpenVPN Connect app installed on my iPhone. When I open OpenVPN Connect application and click on the profile, I connect within a 2-3 seconds. This is all fine.
However, if I go to iPhone settings > VPN and change the status switch, the status immediately shows up as green (connected), even though it is not connected. When I open OpenVPN connect app, I see that it's trying to connect, but it fails. If I again request connection from within the app, it will connect properly.
This hasn't been like this before. The iOS VPN switch used to work. I have a feeling that it changed around iOS ver. 12, but I am not sure.
Has anyone else experienced this problem or has an idea how I can debug it/solve it?

can we use appcelerator titanium liveview in iOS devices?

I tried to run my app in live view mode on an iPhone device from appcelerator studio and get the error :
[LiveView] File Server unavailable. Host Unreachable # 192.168.1.122:8324
[LiveView]Please ensure your device and computer are on the same network and the port is not blocked.
conditions :
1. Device : iPhone 5S with IOS 9.2.1
2. Titanium SDK 5.1.1.GA
3. Firewall off and connected to the same wifi
4. xcode 7.2
5. Appcelerator Studio 4.4.0
6. Latest appcelerator CLI
can't we use live view when deploying to iOS device?
nb : it works when i use iOS simulator and android devices
I just looked through the LiveView code and confirmed this issue happens when the LiveView code inside your iOS app can't see the LiveView server running on your computer. You claim that both your computer and your device are on the same network and the firewall is off. I suppose the next thing to check is the LiveView server even running?
LiveView lives inside the Appcelerator Studio directory. On my machine it's located at /Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865.
You can manually check the server status by running:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server status
There's actually a couple other subcommands you can pass in: start, stop, and restart. If the status command above says that the server is running, stop it using:
/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1445037865/node_modules/liveview/bin/liveview server stop
Build your app again and Studio will start the LiveView server again and hopefully this time it works. I don't think you need to manually start the LiveView server. I'm not even sure if that would work.
I hope that fixes your problem.

worklight - App does not connect with server after installation in first attempt

I just updated my App on iOS 7 and when I deployed it on device then it did not connect after the very first installation. I killed the App and re-started it again then it connected.
Same way, on iOS simulator if i first run App then it do not connect but if I re-run it again then it connects. I have tried many times on simulator but same behavior. I even reset the simulator but same behavior.
Is this known issue? Please guide
I re-generated a fresh code on another Mac machine where only Xcode 5 was installed, and it worked fine. Previously on my Mac machine i had XCode 4.5 & XCode 5 separately, so i assume during generation something could have happened.

Resources