How to make a mac application support both 32bit and 64 bit systems

一曲冷凌霜 提交于 2019-12-25 04:08:54

问题


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

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?


回答1:


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.

(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.)



来源:https://stackoverflow.com/questions/9528403/how-to-make-a-mac-application-support-both-32bit-and-64-bit-systems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!