Xcode报错 Compiling IB documents for earlier than iOS7 is no longer supported.的解决方案

升级到Xcode9以后,项目中的xib文件报错:

Xcode报错 Compiling IB documents for earlier than iOS7 is no longer supported.

解决办法:

找到对应的XIB文件,在右侧的“build for” 里选择 “IOS 7.1 and Later” 即可。

 

image.png