【问题标题】:CorePlot framework with universal build for Mac Apple Silicon适用于 Mac Apple Silicon 的通用构建 CorePlot 框架
【发布时间】:2020-09-09 16:37:59
【问题描述】:

有没有办法将 CorePlot 框架编译为包括 arm 架构在内的通用版本?

当我在 Xcode 12 上打开项目时,我确保选择了标准架构,但它似乎不起作用。我已经用终端上的文件命令对其进行了测试,我只获得了 1 个 x86_64 版本。

有没有办法检查 $(ARCHS_STANDARD) 变量的值是什么?

CorePlot 框架: https://github.com/core-plot/core-plot

【问题讨论】:

    标签: macos core-plot apple-silicon


    【解决方案1】:

    确保您使用的是 release-2.4 分支上的代码。在构建框架之前,从窗口顶部的 Scheme 菜单中选择“Any Mac (Apple Silicon, Intel)”而不是“My Mac”。

    $ lipo -info (build folder)/CorePlot.framework/Versions/A/CorePlot 
    Architectures in the fat file: (build folder)/CorePlot.framework/Versions/A/CorePlot are: 
    x86_64 arm64 
    

    【讨论】:

    • 非常感谢
    猜你喜欢
    • 1970-01-01
    • 2021-09-28
    • 2021-03-14
    • 1970-01-01
    • 2021-05-04
    • 2023-01-29
    • 1970-01-01
    • 2021-03-16
    • 1970-01-01
    相关资源
    最近更新 更多