Since upgrading to Xcode 8 I cannot run any app on my iPhone. The build fails with error:
error: Task failed with exit 0 signal 11
For me this issue was due to expired certificate. I updated my certificate and provisioning profile and issue got solved.
I found that by deleting my account under preferences and re-adding it, I can usually solve this problem.
If you still face this issue and you have upgraded to MacOS Sierra. You can look in the keychain and delete a system key named "1". This solved my problem "Task failed with exit 0 signal 5"
In my case,
Had the exact same issue. First cleaned the Product then restarted the computer. Worked for me!