Module compiled with swift 3.0 cannot be imported in Swift 3.0.1

后端 未结 9 1591
执念已碎
执念已碎 2020-11-30 21:59

I upgraded Xcode to 8.1 GM and am now getting the below error for SwiftyJSON. Other imported frameworks seem to work. Is there a way to force this to work in Swift 3 until S

9条回答
  •  情书的邮戳
    2020-11-30 22:42

    SwiftyJson is being downloaded precompiled by carthage. The precompiled download is with Swift Version 3.0. That makes the compiler complain that the version is not correct. Using the following command:

    carthage update --platform iOS --no-use-binaries
    

    SwiftyJson (and all other frameworks within Carthage) will be compiled locally using the local version of Swift (3.0.1) and the compiler will not complain anymore.

提交回复
热议问题