Xcode 7 Beta warnings: Interface Orientations and Launch Storyboard

后端 未结 8 1568
心在旅途
心在旅途 2020-12-23 15:27

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 unle         


        
相关标签:
8条回答
  • 2020-12-23 16:02

    Set UIRequiresFullScreen to YES in Info.plist. And tick Requires full screen.

    0 讨论(0)
  • 2020-12-23 16:06

    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.

    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.

    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.

    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 :-)

    0 讨论(0)
  • 2020-12-23 16:16

    “Clean Build Folder” and build again

    I got the All interface orientations must be supported unless the app requires full screen. message today in Xcode 7.3.1, seemingly for no reason, no related change that I made.

    • I do have a LaunchScreen.storyboard
    • I have not checked Requires full screen.

    I tried the usual maneuver when Xcode leaves me puzzled about some-new-error-for-no-good-reason:

    1. Hold down Option key while clicking the Product menu.
    2. Choose Clean Build Folder (not Clean).
    3. Choose Product > Build.

    No more problem. After a few more build-and-run sessions, the error message has yet to re-appear.

    0 讨论(0)
  • 2020-12-23 16:16

    Have you provided a "Launch Storyboard" for your app? Or have you just provided static images for the various sizes.

    Check here: https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/MobileHIG/LaunchImages.html

    0 讨论(0)
  • 2020-12-23 16:19

    Just go to your target,click "General" tab,find the "Deployment Info" section,check the "Requires full screen". :)

    It's so easy,right?

    BTW, this is not the best solution. There will be more and more better solutions. But when I answer this question, I only thought how to kill the warnings. I didn't explain why do this but how to solve this. Xcode beta version might change it's features, so I just provide a "workaround" at that early time. So if you think my solution is a workaround, please vote up for other better answers. But this is not the reason for voting down. Thanks :)

    0 讨论(0)
  • 2020-12-23 16:19

    I just saw this error and after reading the comments, I surely want to support iPad and multi-window use. This is as simple as checking Device Orientation options "Landscape Left" and "Landscape Right" and making sure that my UI supports these.

    Best way I found to test for good multi-window support is to use the resizable simulators, or better in my opinion, use the iPad Pro in XCode 7.1 and actually activate the multi-window feature by dragging from the right. After taking these steps, I my app supports these features and I'm able to quickly see what I need to update or optimize to fully support them.

    0 讨论(0)
提交回复
热议问题