美文网首页
iOS用Instruments Leaks调试出现问题解决方案

iOS用Instruments Leaks调试出现问题解决方案

作者: JamieChen | 来源:发表于2021-04-17 10:56 被阅读0次

    出现问题:

    控制台报错:This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.

    解决方案:

    路径:Target - Build Settings - Linking - Runpath Search Paths 中添加/usr/bin/swift
    请将之添加于首位即$(inherited)之上。

    添加成功后如果还是报同样错误将Xcode清理一下缓存 command + K成功后再次运行即可

    示例:
    image.png
    解决方案来源:https://stackoverflow.com/questions/55361057/this-copy-of-libswiftcore-dylib-requires-an-os-version-prior-to-12-2-0

    相关文章

      网友评论

          本文标题:iOS用Instruments Leaks调试出现问题解决方案

          本文链接:https://www.haomeiwen.com/subject/poeulltx.html