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?
All the previous solutions didn't work.
Finlay, changing the iPhone's cable solved the problem.