I am having the same issue. I can't build, run or debug my iOS 17 device attached with lighting cable (Xcode 15.2). I have a company VPN. Xcode just shows the message "Xcode will continue when the operation completes", that never finishes. Are there specific URLs from Apple that need to be white-listed?