美文网首页
2019-03-28

2019-03-28

作者: 不败的意志 | 来源:发表于2019-03-28 14:11 被阅读0次

Module compiled with Swift 4.2 cannot be imported by the Swift 5

之前项目中使用到的swift版本是4.2,在用xcode10.2打开进行编译之后出现了以上错误,是因为使用了xcode10.2带有的swift5进行编译的结果,这里修改swift compiler - language这个地方以及将toolchains修改为4.2版本编译依然不生效的情况下,推荐下载xcode10,并在xcode->preferences->locations中将command line tools改为xcode10,之后clean folder再build就能解决问题

相关文章

网友评论

      本文标题:2019-03-28

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