xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported.

在xcode9上运行以前的项目,xib报了如下错误,

错误.png

错误:

error: Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported.

解决办法:

修改每一个xib的这个属性:选择最后一个ios7.0 and later
改完一个之后你会发现怎么还有别的xib也在报这个错,别急,继续改,直到你的所有xib的这个属性都改完了,就能够运行成功了
未修改之前:

xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported._第1张图片
未修改之前.png

修改后:

xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported._第2张图片
修改.png
【补充!!】

如果你的项目报这个错:
(error: Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported. )

QQ20171207-155338.png

很多xib和storyboard都要改,这工作量就大了,不过你可以用以下方法你可以直接修改这里:
xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported._第3张图片
QQ20171207-155556.png

修改后:


xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported._第4张图片
修改后.png

然后直接运行就可以了。

你可能感兴趣的:(xcode9遇到 Compiling IB documents for earlier than iOS 7 is no longer supported.)