您的位置:首页 > 移动开发 > IOS开发

真机调试时Xcode报错:No matching provisioning profiles found

2015-04-01 15:18 651 查看
错误内容:
The provisioning profile specified in your build settings (“xxx”) has an AppID of “com.xxx.xxx” which does not match your bundle identifier “com.xxx.xxx”.  Xcode can resolve this issue by downloading a new provisioning
profile from the Member Center.
导致错误原因:
之前的证书被撤销了,就从新申请了一个证书。因为这个证书在填写App ID Suffix时选择的Explicit App ID,所以BundleID也就固定下来了。在调试以前的程序的时候,虽然修改了BundleID,但还是出现了No matching provisioning profiles found的错误。
解决方法:
1.打开项目的文件夹,右键点击“项目名.xcodeproj”,显示包内容;
2.双击打开project.pbxproj文件;
3.按下command+F查找内容,在搜索框中输入PROVISIONING_PROFILE,会看到形如:PROVISIONING_PROFILE
= "8992717a-dc99-4cd3-a0d2-1ede23a1586a"; 这样的键值对,把它们全部删除掉;
4.保存,重新打开项目。
如果再次调试时还是出现No
matching provisioning profiles found的问题,建议把多余的Provisioning Profile删除掉。
删除方法:
1.打开终端;
2.进入Provisioning
Profiles目录下:cd ~/Library/MobileDevice/Provisioning\
Profiles/ ;
3.ls -lrt,然后rm。
参考资料:http://www.tuicool.com/articles/nq6zUnnhttp://blog.csdn.net/a351945755/article/details/24554429
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息