Thank you for your suggestion - it worked straight away.
Using Xcode Version 15.2 (15C500b) with iPhone 12 mini v 16.7.2 - this issue has caused problems for a good while now.
Strange how the old cable works on iOS 17.3.1 and iPadOS 17.3.1 devices.
Replaced cable with a new Apple cable - I also notice an increase in app download speed from Xcode.