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

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

1、问题描述: 
今天开发的时候,在跑真机的时候出现了如下问题。markdown

<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>
这边提示证书过时。

2、问题解决: 
这边经过Xcode登陆帐号,从新将证书Download All下来。从新运行项目,仍是出现这个提示。 
经过Xcode下载证书,截图以下: 
1app

这边从新下载证书以后,还有错误。下面进一步查看错误是怎么产生的。 
既然证书错误,确定得看进入”钥匙串访问“管理工具。 
查看了钥匙串——证书,发现了如下问题,截图以下: 
2 
这样子问题就很明朗了。 
这边经过Xcode下载证书,实际上是安装了一个新的证书,可是以前的相同的证书没有覆盖掉。 
这边直接将相同的,过时的证书删除。 
而后从新运行项目,就OK了。工具

3、总结: 
这边总结下,凡是证书问题,多半都是钥匙串里面证书多个重复,而没有覆盖,须要删除以前失效的证书。ui