1,解决办法,进入开发者账号重建一个Provisioning Profiles(或配套证书)文件,把证书添加正确就可以了 (应该是最有效的)
2,将p12文件重新安装下
3, 在iPhone配置实用工具中使用Delete 键删除过期及invalid 的profiles
4, 登录Member Center删除所有 invalid 的 profiles
5,Just created a new project, copied all classes and resources and then it worked!
6, 在命令行下 执行
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin