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:
Check whether the appropriate target is selected or not from the "active scheme selector". Selecting "Generic iOS Device" solved my problem.
Click to select simulator
Select "Generic iOS Device":