gpt4 book ai didi

Xcode 设置 : architecture vs valid architecture

转载 作者:行者123 更新时间:2023-12-04 12:55:44 37 4
gpt4 key购买 nike

我正在查看 Sparkle 项目的配置并注意到它们设置:

  • 架构 = ppc i386 x86_64
  • 有效架构 = i386 x86_64

  • 来自苹果的有效架构描述:

    Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on. If the resulting architecture list is empty, the target generates no binary.



    那么,如果它无论如何都不会在 ppc 上运行,为什么要设置与有效架构不同的架构呢?

    最佳答案

    当设置为“构建机器的 native 架构”时,您可能需要指定您的应用程序在哪些架构上工作。

    例如,如果您的应用程序尚未为 64 位环境做好准备(它可能会编译,但会崩溃),您将有效架构置于 32 位,因此它甚至不会构建 64 位部分在 64 位计算机上。

    至于您的 Sparkle 问题-您需要询问 Sparkle 开发人员,但我敢打赌,这只是 PPC 仍被广泛使用的时代的值(value)。

    关于Xcode 设置 : architecture vs valid architecture,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10104208/

    37 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com