开发 三月 14, 2019

Xcode10.1 iPhone has denied the launch request

文章字数 2k 阅读约需 2 mins. 阅读次数 0

前言

测试环境
Xcode10.1
iPhone8 ios12.1.4
真机调试的时出现下图报错

Google上找答案

After days of research and thanks for the help @Little Green Viper I found a solution.

Basically, some Apple Worldwide Developer Relations Certification Authority weren’t working after the update, but were able to compile successful for the iOS 11. Then, the most risky solution is deleting all the Apple Worldwide Developer Certificates, BUT before to do that, try creating a new user on your Mac

(System Preferences > Users and groups > New User ) that should work.

Now you have to options, work in the new user or re-sign the certificates, in my personal case, I picked up the first option.

翻译上面的👆
基本上,有些Apple Worldwide Developer Relations Certification Authority人在更新后没有工作,但能够成功编译iOS 11。然后,最危险的解决方案是删除所有Apple Worldwide Developer Certificates,但在此之前,尝试创建一个新用户Mac

(System Preferences> Users and groups> New User)应该工作。

现在你必须选择,在新用户中工作或重新签署证书,在我个人的情况下,我选择了第一个选项。

Stackverfow上的链接

但是遗憾的是以上方法我试了 对我的环境并没有用。

找各种清理本地缓存的方式

最后找到一种方式对我有用。

Edit Scheme -> Executable > Ask On Launch

出现这个错误的原因是手机的缓存了不正确的签名数据,
主要是因为多个项目用到了同样的bundle ID导致

0%