Iphone 7 plus iphone is busy... Xcode

I have a iphone 7 plus that I need to test a app that use the camera. The firmware is 15.7.1 and in xcode is hanging in Iphone is busy. Making Iphone ready for developments and is get stuck in the with the same message. What can I do to be able to develop in this phone?

Iphone 7 plus iphone is busy... Xcode
 
 
Q