iPad disappearing under Xcode devices and simulators

When I plug in my iPad, it appears for a few seconds and prompts me to trust the device, which I do, but a few seconds later it just disappears. When I disconnect and reconnect again, the same thing happens again. I tried restarting my devices, the terminal command, and trying different USB ports, but to no avail. My iPad does show up in Finder however. How can I resolve this issue?

I'm on macOS 13.4, with Xcode 15 beta 2, and iPadOS 17. Any help would be greatly appreciated!

^ This screen appears when I disconnect and reconnect and it prompts me to click trust and enter my password, but then it just suddenly disappears

^This is what shows up when my iPad is disconnected

iPad disappearing under Xcode devices and simulators
 
 
Q