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

iOS真机调试——Unable to install “---”

2016-09-27 18:01 330 查看
iOS真机调试——Unable to install “—-” 

一、问题描述: 

今天开发的时候,在跑真机的时候出现了以下问题。
<code class="hljs oxygene has-numbering" style="display: block; padding: 0px; background-color: transparent; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace;font-size:undefined; white-space: pre; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; word-wrap: normal; background-position: initial initial; background-repeat: initial initial;"><span class="hljs-comment" style="color: rgb(136, 0, 0); box-sizing: border-box;">//---是具体项目的名称</span>
Unable <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> install “——”

The certificate used <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> sign “——“ <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">has</span> either expired <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">or</span> <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">has</span> been revoked. An updated certificate <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">is</span> required <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">to</span> sign <span class="hljs-keyword" style="color: rgb(0, 0, 136); box-sizing: border-box;">and</span> install the application.</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; background-color: rgb(238, 238, 238); top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right;"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li></ul><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; background-color: rgb(238, 238, 238); top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); list-style: none; text-align: right;"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li></ul>

这边提示证书过期。


二、问题解决: 

这边通过Xcode登录账号,重新将证书Download All下来。重新运行项目,还是出现这个提示。 

通过Xcode下载证书,截图如下: 



这边重新下载证书之后,还有错误。下面进一步查看错误是怎么产生的。 

既然证书错误,肯定得看进入”钥匙串访问“管理工具。 

查看了钥匙串——证书,发现了以下问题,截图如下: 


 

这样子问题就很明朗了。 

这边通过Xcode下载证书,其实是安装了一个新的证书,但是之前的相同的证书没有覆盖掉。 

这边直接将相同的,过期的证书删除。 

然后重新运行项目,就OK了。

三、总结: 

这边总结下,凡是证书问题,多半都是钥匙串里面证书多个重复,而没有覆盖,需要删除之前失效的证书。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐