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?
This can also happen due to pending update on your device. This also means you need to update your phone, connect to the MacBook (trust it if needed). This how I found my problem and solution.
I tried every answer on this page (7 at the time, though 2 are duplicates) and they were all unsuccessful for getting rid of this Xcode error for me.
There is a simple way to resolve that. At least it works for me. In your iPhone Device Go to Setting > Developer > click in “Clear Trusted Computer” Type the passcode required And done!!!
The simplest way that I found.
My phone was set to "trust" the Mac, and I still ran into this error with Xcode 6.1.1.
This worked for me:
Solution: Switch target device to some other (e.g. Generic iOS Device),
then unlock you physical device and switch back to it again.
On your device (iPhone/iPad) goto: Settings -> Developer -> Clear Trusted Computers worked for me.