此类型的Mac不支持该应用程序

时间:2014-04-21 13:11:30

标签: macos xcode5 osx-snow-leopard osx-mavericks

我已经构建了一个适用于10.9的Objective-C应用程序,但不是10.5(Mac Mini Core Duo; 32位)。

当我打开.DMG文件(在Mini上)时,该图标包含“没有”#39;符号(通过它的圆圈)。当我尝试启动应用程序时,出现错误,显示为You can't open the application [application name here] because it is not supported on this type of Mac.

Project&#39的构建设置:

  • 基础SDK:最新OS X(OS X 10.9)
  • 有效架构:i386 x86_64
  • OS X部署目标:OS X 10.5

截图:

Program not supported on this type of mac computer

相关:enter link description here

我错过了什么?

1 个答案:

答案 0 :(得分:2)

在Xcode中创建的 OS X 项目的默认Architecture设置为Standard Architectures(即 - iirc - 因为XCode 5.1为x86_64)。要为 32位 64位构建它,您需要检查列出的架构与Architecture的不同选项。目前,选择Universal将构建一个通用的 32位 64位应用。

Standart ArchitecturesUniversal列出的体系结构可能会随着Xcode的未来更新而发生变化开始为他们的桌面环境支持另一种架构。

有关Valid ArchitecturesArchitectures之间差异的详细信息,请执行以下操作: What's the difference between “Architectures” and “Valid Architectures” in Xcode Build Settings?