美文网首页iOS点点滴滴
xcode9-swift2.x 语法转换 swift4.0

xcode9-swift2.x 语法转换 swift4.0

作者: iOS_愛OS | 来源:发表于2018-08-22 20:42 被阅读0次

今天遇到这么一个问题


pod 集成 Chats 时提示下面的错误。

image

用 Xcode 编译报错:

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

  • 解决办法:
    • 用xcode8.x版本把 swift2.x 转 swift3.x
    • 再用 xcode9.x 把 swift3.x 转 swift4.x

操作: edit->convert->to current swift syntax


相关文章

网友评论

    本文标题:xcode9-swift2.x 语法转换 swift4.0

    本文链接:https://www.haomeiwen.com/subject/mcfuiftx.html