Xcode 设置 : architecture vs valid architecture

标签 xcode macos xcode4.2

我正在查看 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/

    相关文章:

    xcode - 使用 Storyboard 的用于纵向和横向的通用 iOS 应用程序

    objective-c - 在 Mac OS X 中以编程方式快速查看图像

    ios - 从 swift 2.2 中的 plist 的字典和数组的组合中获取数据

    iphone - UITableViewController NavigationItem 按钮问题

    c++ - Xcode 4.2 上的 unordered_map

    iphone - 使用 xCode 4.2 在 Interface Builder 中删除自动布局(约束)

    swift - SceneKit 渲染器功能不能 Swift 工作?

    xcode - NSXMLParser无法解析特殊字符(重音符号)

    linux - 跨平台安装约定和最佳实践

    objective-c - 属性访问、风格还是实质内容?