V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
icubic
V2EX  ›  macOS

big sur beta10, usr/lib 里面的 dylib 替身都提示找不到其原身了,该怎么处理啊…

  •  
  •   icubic · 2020-10-18 21:23:06 +08:00 · 1714 次点击
    这是一个创建于 1279 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Xcode 缺少 /usr/lib/libstdc++.dylib 某些东西跑不起来了,看了下 /usr/lib 的 libstdc++.dylib 是个替身,原身居然是自己…然后再看了下其他的替身都是原身是自己并且找不到了…想问下出现这种情况该怎么处理好
    usr/lib 修改不了了,原本在开机的时候按住 command+r 可以进 recovery 模式,但是不知道为什么我按住了就直接灰屏,啥都进不去…有什么方式可以修改 usr/lib 吗
    3 条回复    2020-10-19 14:18:46 +08:00
    typetraits
        1
    typetraits  
       2020-10-18 23:09:38 +08:00
    https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11-beta-release-notes/

    New in macOS Big Sur 11 beta, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

    Big Sur 中的动态链接库已经全部整合进 cache 里了。按照这个方法修改下代码吧
    icubic
        2
    icubic  
    OP
       2020-10-19 09:37:50 +08:00
    @typetraits 感谢大佬的回答!居然还有这种改动…相关代码是别人给的动态库里面的…看来有点蛋疼了
    egan0606
        3
    egan0606  
       2020-10-19 14:18:46 +08:00
    升级后,as 炸了,启动就闪退。😭,正在重装的路上
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1188 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:14 · PVG 02:14 · LAX 11:14 · JFK 14:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.