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?
I had to re-add device to xcode.
In XCode open Devices and Simulators (CMD+Shift+2), in left list press + button and re-add the same device.