使用 Xcode 9 新建工程,如果设置支持最低系统版本为 iOS 8 就报错,提示如下:

Safe Area Layout Guide before iOS 9.0

看这提示的意思是说 Safe Area Layout Guide 不支持 iOS 9.0 之前的版本,那就把这个东西给关掉就能解决,方法是点击 Main.storyboard,选择 ViewController 去掉 Use Safe Area Layout Guide,如下图所示:

然后再选择 LaunchScreen.storyboard,用同样的方法去掉 Use Safe Area Layout Guide,再编译程序就没问题了。

原文地址:https://www.exchen.net/how-does-xcode9-support-ios-8.html