Proper way to make a fat binary prefer to be 32bit on 64bit OS X 10.6?

我只是一个虾纸丫 提交于 2019-12-05 21:18:36

Try using this Info.plist key, LSArchitecturePriority:

<key>LSArchitecturePriority</key>
<array>
    <string>i386</string>
    <string>x86_64</string>
    <string>ppc</string>
    <string>ppc64</string>
</array>

Just don't do this by dynamically altering your program's bundle. The user running your program might not have permission to write to it. If you need to do this on a per-user basis, a wrapper script would be a preferred alternative.

You're probably looking for something like LSArchitecturePriority. Runtime Configuration Guidelines - Property List Key Reference is the documentation for all the key / values for an .app bundles Info.plist file.

The other way to do it is by setting the ARCHPREFERENCE environment variable, as described on the arch man page.

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