the identity used to sign the executable is no longer valid.解决方法
一、重新下载Provisioning Profile
1、到development.apple.com网站
2、
3、
4、
5、打开下载下来的PP文件,双击(安装到xcode中),运行程序,successed。
二、General -> Identity -> Team is selected
三、Preferrences--->View Details--->Action --->'Reset'
1.command + <,--->Accounts--->登录账号
2.双击账号或者view details
Managed-by-Xcode provisioning profile that expired.
You are using a “Team Provisioning Profile” and it expired. You went to renew and download it, and noted “Managed by Xcode” and the “Renew” button was grayed out.
The solution: delete the profile from Organizer in Xcode, then at the top click “Refresh” (right by “Automatic Device Provisioning”). Organizer will fetch a new provisioning profile with a new expiration date.
Intuitive indeed.