借鉴解决地址感谢国外大佬:
https://stackoverflow.com/questions/46726077/module-compiled-with-swift-4-0-cannot-be-imported-in-swift-4-0-1
首先我们看下问题:

该问题出现在Xcode版本更新后,carthage版本与当前Swift版本不兼容所引起的报错

首先先升级carthage到最新版本,之后终端输入
carthage update --platform iOS
更新过程比较慢耐心等候

最后在工程中先cmd + shift + k 后cmd + option + shift + k问题就解决了!
网友评论