Force a Mac OS X 32/64-bit universal binary to run 32-bit on an old OS version only?

纵饮孤独 提交于 2019-12-06 03:33:04

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/1549143/force-a-mac-os-x-32-64-bit-universal-binary-to-run-32-bit-on-an-old-os-version-o

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