V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
icubic
V2EX  ›  macOS

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

  •  
  •   icubic · Oct 18, 2020 · 2632 views
    This topic created in 2019 days ago, the information mentioned may be changed or developed.
    Xcode 缺少 /usr/lib/libstdc++.dylib 某些东西跑不起来了,看了下 /usr/lib 的 libstdc++.dylib 是个替身,原身居然是自己…然后再看了下其他的替身都是原身是自己并且找不到了…想问下出现这种情况该怎么处理好
    usr/lib 修改不了了,原本在开机的时候按住 command+r 可以进 recovery 模式,但是不知道为什么我按住了就直接灰屏,啥都进不去…有什么方式可以修改 usr/lib 吗
    3 replies    2020-10-19 14:18:46 +08:00
    typetraits
        1
    typetraits  
       Oct 18, 2020
    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
       Oct 19, 2020
    @typetraits 感谢大佬的回答!居然还有这种改动…相关代码是别人给的动态库里面的…看来有点蛋疼了
    egan0606
        3
    egan0606  
       Oct 19, 2020
    升级后,as 炸了,启动就闪退。😭,正在重装的路上
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2737 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.