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

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下载证书,截图如下: 
1

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值