【主要内容:】
1. 错误起因
2. 错误提示
3. 解决问题办法
一、错误起因:
项目在Xcode8中使用了ReactiveCocoa,打开工程后一直提示我Convert Swift版本,我选择了later。然后编译就开始报错。如图:
二、错误提示:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
如图:
三、解决问题办法:
选择Pods - ReactiveCocoa - Swift Compiler -Version - Use Legacy Swift Language Version,把Unspecified改成YES。选择之前的Swift版本就可以了。
欢迎大家关注“芒果iOS”微信公众账号,芒果会经常为大家分享好的技术文章: