美文网首页
Swift-解决Swift 4.0 cannot be impo

Swift-解决Swift 4.0 cannot be impo

作者: RayJiang97 | 来源:发表于2017-07-04 12:03 被阅读0次

背景:
在项目中引入了Alamofire第三方库,用 Xcode9 打开了一次项目。
再用Xcode8打开报错:Module compiled with Swift 4.0 cannot be imported in Swift 3.1

解决方法

1.用 Xcode9 打开项目
2.点 Product -> Clean 或者用快捷键 ⌘command + ⇧shift + k 清一下
3.再用 Xcode8 打开编译/运行,报错就消除了

相关文章

网友评论

      本文标题:Swift-解决Swift 4.0 cannot be impo

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