参考地址:http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof
大概步骤如下:
1.找到项目中的**.xcodeproj文件,右键打开包内容;
2.然后找到project.pbxproj文件,双击打开;
3.再然后,搜索“PROVISIONING_PROFILE",找到以它开头的都删了
删完以后你就会发现错误提示没了,那么就运行工程,联网情况下Xcode会自己
下载并安装provisioning profile文件;那么一切都ok了!!