I was also getting this error but the issue i was facing was when testing out my unity mobile game. It was trying to launch on my Ipad that was nearby and locked instead of my iphone. I just unpaired my ipad from xcode and it solved the problem.