• Xcode真机调试报错(证书的签发者无效)


    Xcode真机调试时报错:

    dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib

      Referenced from: /var/mobile/Containers/Bundle/Application/A54D1688-B528-4606-9E02-B51433425FB7/LoveFreshBeen.app/LoveFreshBeen

      Reason: no suitable image found.  Did find:

    /private/var/mobile/Containers/Bundle/Application/A54D1688-B528-4606-9E02-B51433425FB7/LoveFreshBeen.app/Frameworks/libswiftAVFoundation.dylib: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/A54D1688-B528-4606-9E02-B51433425FB7/LoveFreshBeen.app/Frameworks/libswiftAVFoundation.dylib'

    解决方法:

    报这种错误可能是你的证书失效了,这时候去“钥匙串访问”看看是否证书失效,如果出现“此证书的签发者无效”,是因为:系统证书WWDR在2016年2月14日失效,需要更新WWDR系统证书

    按照这个链接下载证书,https://developer.apple.com/certificationauthority/AppleWWDRCA.cer,并安装。

    记得在“登录”和“系统”中删除失效证书

    操作完后,不出意外的话你的证书那里从 “此证书的签发者无效” 变成了 “此证书有效” 了。

    这时候重启Xcode,再运行程序,就能在真机上运行了。

  • 相关阅读:
    timeDate.js 插件优化
    向页面中插入不同格式的时间(timeDate.js)
    html
    html
    html
    html
    three.js
    three.js
    three.js
    python之路_头像预览、each循环及form组件校验验证码
  • 原文地址:https://www.cnblogs.com/huahua0809/p/5297058.html
Copyright © 2020-2023  润新知