Can't use safe areas in Xcode 9 after upgrading minimum deployment target to iOS 9

Jordan Wood picture Jordan Wood · Sep 14, 2017 · Viewed 16.9k times · Source

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.

I am using Xcode 9, GM seed.

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.

Answer

zhengwu119 picture zhengwu119 · Oct 2, 2017

Just deselect "Use Safe Area Layout Guides" option, which should fix this. A screenshot below may point you the right direction. Hope this image can help

alt screenshot