Ive been having the same issue. Xcode 16, iOS and iPadOS 18. Seems to get stuck quite often on "Preparing iPad" (or "Preparing iPhone"). The only solution I've found is to disconnect the cable, reboot my MacBook, and re-connect the cable. Also rebooting the iPhone/iPad seems helps to keep it from happening quite as frequently (although it still happens a lot).
Gets a bit frustrating having to reboot all the time.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: