Cannot connect to the debugger - again!

Haven’t seen this in some time, but it’s back and I cannot figure it out.

My app was working fine in the debugger. Today it won’t connect.
Nothing changed between yesterday and today.

I’ve had this happen a couple times in the last week. It finally sorts out, but I lose hours trying to figure it out.

Anyone have tips or tricks to get past it?

On-device or simulator?

Wired or wireless?

Sorry!

Yes. On device over USB.

Open xcode - devices and simulators then connect the usb cable and unlock the best phone, see if there is a sync required.

Nothing abnormal there.

However, I left to drop my kid at school, came back, and it’s working.
I’m always tempted to just press on then, but I know it will happen again, and I can rarely be good with a couple hours with a show-stopper.

I wish there was more information that could be used to figure out what the problem is.

Ok, so just in case you don’t know, if you delete the app, the device “forgets” that the app has permission to access the network and you have to give it permission again. That should show up as a dialog when you go to launch it again the next time.

I’ve seen a few cases in my own work where if your app has its own need to access the network that settings that differ with Xojo will override the Xojo settings that are required for debugging and things will start failing. Also, check in Xcode and see whether Connect via WiFi is checked for the device or not. If you’re using USB for debugging, you should uncheck that option in Xcode. My experience indicates that the device may choose WiFi over USB if the USB connection doesn’t respond in a certain way, but turning that flag off makes it much more stable.

Thanks. I’ll look into that.

Hmmmm. connect over wifi is check and disabled.

Try disconnecting the device and see if it becomes enabled

Yeah, I’ve tried everting including restarting all devices.
I love when things are 100% transparent and informative :stuck_out_tongue_winking_eye: