**The identity used to sign the executable is no longer valid.**
Please verify that your device’s clock is properly set, and that your signing certificate is not expired.
I've met this error when build my app on iphone by Xcode device for 2 days. It had worked properly before. But only when build on that iphone, the other ios devices is normal, hic. can you help me :(
You can try to delete the certificates from keychain, restart Xcode and try to download them (Xcode-Preferences-Accounts-View Details) and click on "Download All".
If this doesn't work open Xcode accounts (Xcode-Preferences-Accounts-View Details) and right click on the certificates and delete them. Check in the member center if someone is INACTIVE or EXPIRED and solve that issue.
The certificates that you manage from the member center are still present even if you delete them from Xcode. Xcode will download all the certificates of the member center. I had several issues with these certificates, most of the time these operations solved my problems. Hope it also for you.