Swift中使用cocoapods继承报错

2017-06-29  本文已影响19人  Paladiners

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.


QQ20170629-161834@2x.png

解决方法:

Build settings -> search swift, choice use legacy swift language version

Toggled no to yes -> build. You will get more error.

Back toggled yes to no. build -> success!

上图:


QQ20170629-162513@2x.png

参考文章:
https://stackoverflow.com/questions/41157874/use-legacy-swift-language-version-swift-version-is-required-to-be-configured

上一篇 下一篇

猜你喜欢

热点阅读