I know this has been asked and answered multiple times but I\'m tearing my hair out as none of the proposed solutions appears to work.
File > Workspace Settings > Set Build system to "Legacy Build System"
In my case it was just after a new Program Licence Agreement was released so we had to accept them and it was fine.
This can happen if your provisioning profile has expired. Another reason could be that you device date exceeds the expiry date of your provisioning profile. Please make sure that your device date is correct.
After spending the day I realized it was a simple change in Project Settings
File -> Project Settings... -> Build System -> Legacy Build System.
In a project setting, you will see Build System named drop down and in that drop down select Legacy Build System
I'm still not sure what the issue was but deleting all certificates and starting over (albeit twice) eventually solved it.
My best guess is that I've missed some small but important detail of the procedure. Unfortunately I can't be any more specific than that.