强制Mac OS X 32/64位通用二进制文件仅在旧操作系统版本上运行32位? [英] Force a Mac OS X 32/64-bit universal binary to run 32-bit on an old OS version only?

查看:1209
本文介绍了强制Mac OS X 32/64位通用二进制文件仅在旧操作系统版本上运行32位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想运送桌面Mac OS X Cocoa应用程式的 32/64位通用二进位档。我不想运送两个版本。



我希望它在Snow Leopard上以64位进程运行。



但是,如果应用程序在Leopard上启动,我总是强制它作为32位进程运行。



注意:我知道在Finder的获取信息窗口中,您可以单击在32位模式下打开复选框来实现这一点。这很不错,但我真正想要的是自动地,总是强制这种行为在只有豹。在Snow Leopard应用程序应该运行64位,除非用户想要更改上述设置。



可以这样做吗?如果是,如何?

解决方案

设置每个架构键的最低系统版本

I want to ship a single 32/64-bit universal binary of my desktop Mac OS X Cocoa app. I don't want to ship two versions.

I want it to run as a 64-bit process on Snow Leopard.

However, if the app is launched on Leopard, I want to always force it to run as a 32-bit process.

NOTE: I know that in the Finder 'Get Info' window you can click the 'Open in 32-bit mode' checkbox to achieve this. That's nice, but what I really want is a way to automatically, always force this behavior on Leopard only. On Snow Leopard the app should run 64-bit unless the user wants to change the setting mentioned above.

Can this be done? If so, how? thx.

解决方案

Set the minimum system version per architecture key in your Info.plist file :)

这篇关于强制Mac OS X 32/64位通用二进制文件仅在旧操作系统版本上运行32位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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