问题描述
Xcode 6 GM 现在包含适用于 iPhone 6 和 6 Plus 的模拟器,默认情况下它们以缩放模式运行应用程序.
Xcode 6 GM now includes simulators for iPhone 6 and 6 Plus, and by default they run apps in a scaled mode.
为了启用新的屏幕尺寸,我尝试添加 [email protected]
这似乎起到了部分作用,因为应用程序现在根本无法运行,并显示错误无法在模拟器中运行应用程序 - 运行时遇到错误(域 = LaunchServicesError,代码 = 0)".
To enable the new screen size I tried adding [email protected]
which seems to do a part of the trick since the app now fails to run at all, with the error "Unable to run app in Simulator – An error was encountered while running (Domain = LaunchServicesError, Code = 0)".
有没有人想出如何让应用以 6/6+ 分辨率实际运行?
Has anyone figured out how to get an app actually run in the 6/6+ resolution?
推荐答案
您可以添加似乎适用于多种屏幕尺寸的启动屏幕文件.我刚刚添加了 MainStoryboard 作为启动屏幕文件,这阻止了应用程序的缩放.我想我稍后需要添加一个永久的启动屏幕,但是这样可以提高原始分辨率并快速运行.在 Xcode 中,转到您的目标、常规并在那里添加启动屏幕文件.
You can add a launch screen file that appears to work for multiple screen sizes. I just added the MainStoryboard as a launch screen file and that stopped the app from scaling. I think I will need to add a permanent launch screen later, but that got the native resolution up and working quickly. In Xcode, go to your target, general and add the launch screen file there.
这篇关于如何为 iPhone 6 和 6 Plus 上的应用程序启用原始分辨率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!