如何使Mac应用程序同时支持32位和64位系统 [英] How to make a mac application support both 32bit and 64 bit systems

查看:2079
本文介绍了如何使Mac应用程序同时支持32位和64位系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Mac应用程序.系统要求显示为64位.但该应用程序也可以在32位系统上运行. 当我检查了应用程序的构建设置"时.我发现:

I have created one mac application. It is showing 64bit as system requirement. but the app can run in 32bit systems also. When I checked the Build Settings of the application. I found:

Valid Architecture   : i386 x86_64

据我所知,这些是基于Intel的32/64位系统.但是我想使我的应用程序适用于所有处理器和系统的32位和64位.

and according to my knowledge these are intel based 32/64bit systems. But I want to make my application for all the processor and system 32 and 64bit.

我该怎么做?我应该删除它们并重新提交申请吗?

How can I do so?? Should I delete them and resubmit the application?

推荐答案

Mac OS X已在PowerPC(32位和64位)和Intel(同样是32​​位和64位)处理器上运行. Mac OS X 10.5 Leopard是在PowerPC机器上运行的Mac OS X的最新版本.因此,如果您的应用程序的目标是10.6或更高版本,则不能支持PowerPC Mac.对于支持10.5或更低版本的应用程序,可以构建可以在Intel和PowerPC机器上运行的通用二进制文件. Xcode 3.2.5是Xcode的最新版本,其中包括对这些通用二进制应用程序的编译支持.因此,如果您确实要针对PowerPC机器,则需要安装Xcode 3.2.5.您已经找到的设置是正确的.在Xcode 3.2.5和更早版本中,它将包括为PowerPC进行构建的选项.

Mac OS X has run on PowerPC (both 32-bit and 64-bit) and Intel (again, both 32-bit and 64-bit) processors. Mac OS X 10.5 Leopard was the last version of Mac OS X that ran on PowerPC machines. So, if your application targets 10.6 or higher, you can't support PowerPC Macs. For applications supporting 10.5 or lower, it is possible to build a Universal binary that will run on both Intel and PowerPC machines. Xcode 3.2.5 was the last version of Xcode to include support for compiling these Universal binary apps. So, if your really want to target PowerPC machines, you need to install Xcode 3.2.5. The setting you've already found is the correct one. In Xcode 3.2.5 and earlier, it will include the option to build for PowerPC.

(注意:也可以将Xcode 4设置为PowerPC构建,但是安装Xcode 3.2.5是更简单的方法.)

(Note: It should be possible to set Xcode 4 up to build for PowerPC too, but installing Xcode 3.2.5 is the easier way to go.)

这篇关于如何使Mac应用程序同时支持32位和64位系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆