将最低部署目标升级到iOS 9后,无法使用Xcode 9中的安全区域 [英] Can't use safe areas in Xcode 9 after upgrading minimum deployment target to iOS 9

查看:120
本文介绍了将最低部署目标升级到iOS 9后,无法使用Xcode 9中的安全区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的应用程序从支持iOS 8及更高版本更改为支持iOS 9及更高版本.我相信我已经正确地做到了这一点,因为当我现在构建自己的应用程序时,我收到了iOS 9中不推荐使用的应用程序中所有内容的警告.

I have just changed my app from supporting iOS 8 and up to supporting iOS 9 and up. I believe I've done this properly, since when I now build my app, I'm getting warnings for everything in the app which was deprecated in iOS 9.

我正在使用Xcode 9,GM种子.

I am using Xcode 9, GM seed.

问题是我无法在我的任何情节提要中启用使用安全区域布局指南"切换.当我这样做时,会收到警告"iOS 9.0之前的安全区域布局指南".我需要更新一些其他设置吗?干净的构建并不能解决问题.

The problem is that I cannot enable the "Use Safe Area Layout Guides" toggle in any of my storyboards. When I do, I get a warning "Safe Area Layout Guide before iOS 9.0". Is there some additional setting that I need to update? A clean and build did not fix the problem.

推荐答案

在发布到SO之前,我没有尝试退出Xcode并重新启动它!对不起!答案是,退出Xcode,然后重试.

I didn't try quitting Xcode and restarting it before posting to SO! Sorry! The answer is, quit Xcode and try again.

这篇关于将最低部署目标升级到iOS 9后,无法使用Xcode 9中的安全区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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