Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error:
Already tried all the solutions above. I still could not solve my problem. So I uninstall the Xcode and reinstall it. It worked magically.hope this helps.