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

2020-10-18 21:23:06 +08:00
icubic  icubic
Xcode 缺少 /usr/lib/libstdc++.dylib 某些东西跑不起来了,看了下 /usr/lib 的 libstdc++.dylib 是个替身,原身居然是自己…然后再看了下其他的替身都是原身是自己并且找不到了…想问下出现这种情况该怎么处理好
usr/lib 修改不了了,原本在开机的时候按住 command+r 可以进 recovery 模式,但是不知道为什么我按住了就直接灰屏,啥都进不去…有什么方式可以修改 usr/lib 吗
1980 次点击
所在节点   macOS  macOS
3 条回复
typetraits
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
icubic
2020-10-19 09:37:50 +08:00
@typetraits 感谢大佬的回答!居然还有这种改动…相关代码是别人给的动态库里面的…看来有点蛋疼了
egan0606
egan0606
2020-10-19 14:18:46 +08:00
升级后,as 炸了,启动就闪退。😭,正在重装的路上

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/716183

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX