Xcode; build succeeded but; iPhone is not available in the end

My build succeeds but at the end it says iPhone is not available, please reconnect the device my iPhone is plugged in and is connected and comes up on Xcode, I am on iOS 13.5.1 on my phone which is an iPhone 7



Hi,

can you find the device in the 'Devices and Simulators' window that you can open via the menu bar? If yes, does Xcode report any errors that might show the cause why the app can't be launched on the device?
Did you try to reconnect the device to your Mac and selected 'Trust' in the dialog that comes up and asks for permission to connect to the Mac?
I had this same problem except I was using Xcode 12 Beta, IOS 14 and an iphone 11 Pro Max. Here is what I did to resolve this:

You need to go into Project Info (not Targets) and for the Deployment Target setting set your IOS Deployment Target to be whatever version IOS you are using on your iphone.

Also, you need to then select your Target and in the Deployment Info section you need to ensure that the IOS version is correct for your selected Iphone.
Xcode; build succeeded but; iPhone is not available in the end
 
 
Q