When I tried to build and run, Xcode said my device was locked. I looked at my iPhone, and it\'s not locked at all. How do I fix this?
For those who has this issue in Xcode 9: Simply restarting Xcode should solve the problem.