hronro
V2EX  ›  macOS

苹果这是什么骚操作,自带的 curl 链接了一个不存在的 libcurl,但是却能正常运行?!

  •  
  •   hronro · Jan 2, 2022 · 3214 views
    This topic created in 1605 days ago, the information mentioned may be changed or developed.

    系统版本:macOS Monterey (Version 12.1)

    屏幕截图

    3 replies    2022-01-02 04:56:04 +08:00
    gjquoiai
        1
    gjquoiai  
       Jan 2, 2022
    大索尔里引入的变更,系统提供的动态链接库不在文件系统中了,现在只能用 dlopen 检查存在与否
    MrKrabs
        2
    MrKrabs  
       Jan 2, 2022
    /System/Library/dyld/
    ptyfork
        3
    ptyfork  
       Jan 2, 2022
    https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes

    New in macOS Big Sur 11.0.1, 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)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1123 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 23:05 · PVG 07:05 · LAX 16:05 · JFK 19:05
    ♥ Do have faith in what you're doing.