cert过期,添加或删除用于测试的device等,都要对provisioning profile进行更新。对于development provisioning profile,最简单的方法就是在apple developer site里修改你的provisioning profile,然后在xcode的organizer window的"devices tab > Library > Provisioning Profiles"里click refresh button。然后check the provisionning profile in device。
然后在你的project里需要重新recompile,但当你re compile时就会出错,原因是provisioning profile已经更新,而project仍然使用旧的。解决方案是:在 target > Building settings > Code signing Identity"里更新Debug and Release iOS SDK的设置
参考文档:
http://stackoverflow.com/questions/1342497/renew-provisioning-profile