[错误]A cryptographic verification failure has occurred.

错误提示信息:
[objc]
swift stdlib tool error
error: A cryptographic verification failure has occurred.
Error Couldn’t codesign ….Frameworks/libswiftFoundation.dylib: codesign failed with exit code 1
[/objc]

解决办法:
1、钥匙串 ——> 偏好设置 ——> 还原我的钥匙串 ,然后重新导入证书

事情经过:
下午升级了Mac系统10.12,升级完后Siri无法使用,xcode 8打包时候提示上面错误
由于上午还是用着xcode 8打过包,下午升级了系统后不行。直接排除xcode问题。
接着确认了配置文件和证书没问题后,我就去钥匙串看证书。
证书上面写的是【此证书有效】,但是发现平时证书的小三角没了
而且所有证书也不能添加到”我的证书”里面。
蠢逼的我,以为是10.12系统就是这样。

无奈经过网上搜索答案:
1、Targets -> Build Settings -> Embedded Content Contains Swift Code 默认值为No 将其置为Yes ,此方法不通,改了后所有swift的代码一大堆警告
2、Xcode -> 系统偏好设置-> Accounts 重新登录账户,此方法登录后还是无效。
3、证书问题,重新配置证书和配置文件,由于前面已经确认证书没问题就忽略了。
4、然后从 A cryptographic verification failure has occurred. 入手,一直不知道为啥提示这个,就一直怀疑账号问题。。。
5、发现证书点导出时候,“个人信息交换 .p12”是灰色,开始怀疑系统权限问题
6、用修复磁盘功能,居然把Siri修复好了,但是证书还是不行
7、最后怒了直接 钥匙串 ——> 偏好设置 ——> 还原我的钥匙串,重新导入证书,发现“我的证书”正常,然后xcode打包也正常了。坑死人了!!

81 thoughts on “[错误]A cryptographic verification failure has occurred.

  1. Lueten

    Revelez votre beaute avec notre selection de cosmetiques et de soins pour le visage et le corps. Retrouvez les plus grandes marques de parapharmacie a prix doux. Une routine bien-etre personnalisable en quelques clics seulement. Offrez-vous une pause detente a domicile.baclofen

  2. Anwjye

    FanDuel Casino is America’s #1 online casino, delivering unhesitating thrills with ignition casino complaints , aristocratic slots like Huff N’ Puff, and actual dealer act normal at your fingertips. Mod players grab 500 Bonus Spins added $40 in Casino Perk exactly for depositing $10—with the addition of up to $1,000 back on first-day reticle losses. Line all Thrillionaires: unite for the nonce, butter up your nature, and upon every blink into epic wins!

Vmgnsp进行回复 取消回复

电子邮件地址不会被公开。