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?
The fastest way for now i found is:
1) Go to Window -> devices (changed the hotkey in xcode to CMD+P for me) 2) Press unpair on the device. 3) Press trust in iPhone. 4) Build again or Run without building (Ctrl+CMD+R)