Apple Silicon 的 macOS 库有什么不同吗?
库可以是静态的或动态的。据我所知,在 macOS 上它可以是 .a
或 .dylib
文件。
假设我要将它用于旧的(非硅)苹果计算机(即运行 Catalina 的计算机)和具有 M cpu 的新计算机(即运行 Monterey 的计算机)。
每种情况下的二进制文件 .a
或 .dylib
是否不同?
供应商是否应该为苹果硅提供特定的二进制文件?
.so
库在这种情况下如何运行?
A library can be static or dynamic. Respectively, on macOS it can be a .a
or a .dylib
file, as far as I know.
Let's say I'm going to use it for both, the old (non silicon) apple computers (i.e. those running Catalina) and the new computers with M cpu (i.e. those running Monterey).
Does the binary, the .a
or .dylib
, is different for each case?
Should the vendor provide a specific binary for apple-silicon?
How the .so
libraries go in this context?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,它们是不同的,人们通常使用 lipo 将多个架构合并在一起(当它不是构建过程的一部分)。
Yes, they are different, people usually use lipo to merge multiple architectures together (when it is not part of the build process).