美文网首页
iOS中真机调试所遇到的常见问题

iOS中真机调试所遇到的常见问题

作者: 再近不过信仰 | 来源:发表于2017-04-20 16:53 被阅读0次

    在Xcode真机调试开发过程中,无论是使用个人证书或者是企业证书,经常会遇到这样的问题:

    The certificate used to sign "XXX" has either expired or has been revoked. An updated certificate is required to sign and install the application.

    刚开始在key里删除证书,在Xcode中fix一下,好像问题也不大。

    但是最近频发发生这样的事情,有时候需要耗费很久才能在搞定。

    后来在stack overflow找到一个帖子,是这样解决的:

    http://stackoverflow.com/questions/36689116/certificate-has-either-expired-or-has-been-revoked

    帖子中是这么说的:

    First of all clean the project by holding Shift(⇧)+Command(⌘)+K or Select Product > Clean

    Then

    Go to XCode Menu> Preference

    Select Account > Team > View Details

    Select any Provisioning profile from Provisioning Profiles list

    Right click > Select Show in Finder. Then you will see all lists of provisioning profiles

    Select all provisionaling list from the folder and move it to trash

    Download All provisioning profiles by clicking Download All below Provisioning Profile lists.

    Now, Run again and it should Work!

    那么现在,翻译出来就是:

    首先清洁项目按键shift(⇧)+命令(⌘)+ K或选择产品>清洁,然后去XCode菜单>首选项选择账户>

     Team >视图的细节,从配置概要文件列表中选择任何配置配置文件右键单击>在Finder中选择

    Show。

    然后你会看到所有配置概要文件的列表,选择所有的临时列表文件夹并将其移动到垃圾桶。

    删除完配置文件之后点击这里下载。

    下载所有配置概要文件之后再次运行,就可以啦!

    相关文章

      网友评论

          本文标题:iOS中真机调试所遇到的常见问题

          本文链接:https://www.haomeiwen.com/subject/vgplzttx.html