Xcode 7 Beta警告:界面方向和启动故事板 [英] Xcode 7 Beta warnings: Interface Orientations and Launch Storyboard

查看:202
本文介绍了Xcode 7 Beta警告:界面方向和启动故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode 7 beta中打开了我的项目,我收到了以下警告,我没有在Xcode 6中获得:

I opened my project in Xcode 7 beta and I am getting the following warnings which I do not get in Xcode 6:

 All interface orientations must be supported unless the app requires
 full screen.


 A launch storyboard or xib must be provided unless the app requires
 full screen.

应用程序仅使用纵向方向设备,我设置了这种方式。我还有iphone和ipad接口的故事板。我无法确定为什么我会收到这些警告。这是一个Xcode 7测试版错误吗?

The app uses Portrait orientation for devices only, and I have it set that way. I also have storyboards for both iphone and ipad interfaces. I can't determine why I am getting these warnings. Is this an Xcode 7 beta bug?

推荐答案

此警告是iOS 9的新功能,因为它支持具有多窗口支持的可调整大小的应用程序。以前,应用程序将自动扩展到新设备,这些设备具有与启动映像中的硬件显示分辨率不同的硬件显示分辨率(这基本上是iOS检测支持的接口分辨率的方式)。现在,支持多窗口的应用程序必须通过包含所有设备屏幕类型的启动图像或故事板来定义它们支持的分辨率。

This warning is new for iOS 9 since it supports resizable apps with multi-window support. Previously, apps would be auto-scaled to new devices which had different hardware display resolutions to those in the launch image (which is basically how iOS detects the supported interface resolutions). Now, apps which support multi-window must define the resolutions they support by including a launch image or storyboard for all device screen types.

除非您重新编写应用程序要支持多窗口,您将需要全屏。这是iOS的一个提示,你不支持多窗口,并且基本上使iOS 9在这方面像以前的版本一样工作。

Unless you are re-writing your app to support multi-window, you will be requiring 'Full screen'. This is a hint to iOS that you do not support multi-window, and basically makes iOS 9 work like previous versions in this regard.

所以,如果你提交一个iOS 9的应用更新,并且您不支持多窗口,您只需要转到Project Target设置,选择General,然后在'Deployment Info'下面找到名为'Requires Full Screen'的复选框。勾选此项,警告将消失。

So, if you are submitting an app update for iOS 9, and you do not support multi-window, all you have to do is to go to your Project Target settings, select General, and under 'Deployment Info' look for the tick box called 'Requires Full Screen'. Tick this and the warnings will disappear.

这肯定不是一个错误。如果出现此警告,那么您的应用在提交过程中可能会遇到问题。不确定,因为我还没有提交iOS 9 GM Seed的应用程序,但我肯定会勾选方框: - )

It is certainly not a bug. If this warning is present, then your app may have trouble during submission. Not sure about that, because I haven't submitted an app with iOS 9 GM Seed yet, but I'm certainly going to tick the box :-)

这篇关于Xcode 7 Beta警告:界面方向和启动故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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