Updated to Xcode 7.0.1 and Project now has problems

半世苍凉 提交于 2019-12-21 05:36:33

问题


So I uploaded my Xcode 6.1 build to iTunes Connect and the app was approved. Now i'm trying to update the app and I updated to Xcode 7.0.1 and Xcode is giving me problems stating:

(For app I used storyboards and Objective-C)

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

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

- (NSUInteger)supportedInterfaceOrientations {

return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}

What's the new supported interface orientation for iOS 9?


回答1:


If your app supports multi tasking you need to support all orientations (Portrait up, Portrait Down, Landscape Left, Landscape Right) and a also Launch Screen xib/storyboard.

If you are not interested, you can opt-out by specifying UIRequiresFullScreen key in your info.plist and setting the boolean value to YES. (Read this answer for more about this option)




回答2:


Go to Targets -> General, Deployment Info and check all for device orientation and the warning will go away e.g. for an iPad only app you have to tick all orientations, in your view controllers then you can override the orientations.



来源:https://stackoverflow.com/questions/33058829/updated-to-xcode-7-0-1-and-project-now-has-problems

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