iOS : Xcode error: This device is no longer connected
Make sure your iOS or iPadOS device is turned on, unlocked and on the Home Screen. Check that you have the latest software on your Mac or Windows PC. If you’re using iTunes, make sure you have the latest version. If you see a Trust this Computer alert, unlock your device and tap Trust.