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:
My error was a wrong version of command line tools - go to Preferences->Locations and change the command line tools version - quit xcode and try again.