对于这个问题,我遇到的情况是Main.storyboard和LaunchScreen.storyboard中使用了Safe Area Layout Guide ,但是项目最低兼容版本为8.0,查看文档,你会发现,这个“Safe Area Layout Guide”最低兼容版本是iOS 9.0,因此保存。解决办法:

1,修改项目最低兼容版本为9.0,这样就ok

2,对于项目需求仍需要兼容iOS 8.0,只要去除Main.storyboard和LaunchScreen.storyboard这两个文件中使用的“Safe Area Layout Guide”即可。如图:

取消前:

xcode 9 :Safe Area Layout Guide before iOS 9.0?

取消后:

xcode 9 :Safe Area Layout Guide before iOS 9.0?

相关文章: