且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何启用“使用低分辨率”在视网膜显示屏上的应用程序发货?

更新时间:2023-09-15 10:08:22

我目前无法检查,但可能是 NSHighResolutionCapable 键的存在或不存在缓存在启动服务数据库。这就是存储在Info.plist中指定的应用程序的大多数属性。将应用程序复制到USB闪存驱动器似乎证实了这一理论。

I'm not currently in a position to check, but it's likely that the presence or absence of the NSHighResolutionCapable key is cached in the Launch Services database. That's where most properties of an app which are specified in the Info.plist are stored. The fact that copying the app to a USB thumb drive worked seems to confirm that theory.

您可以搜索以下命令的输出,查看应用程序的软件包ID,然后查看如果有任何明显与高分辨率能力有关:

You might search the output of the following command for your app's bundle ID and then see if there's anything obviously related to high resolution capability:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -dump

如果有,则在修改应用程序的Info.plist后,它可能工作:

If there is, then, after you modify an app's Info.plist, it might work to do:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /path/to/the/modified.app

如果没有,那么也许更强大:

If not, then perhaps the more powerful:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed

如果没有帮助,那么(从我们上面的评论)似乎试图在一个新的用户帐户工作。

If none of that helps, then (from our above comments) it seems that trying in a new user account works.