无法在 Swift X.0.2 中导入使用 swift X.1 编译的模块 [英] Module compiled with swift X.1 cannot be imported in Swift X.0.2

查看:27
本文介绍了无法在 Swift X.0.2 中导入使用 swift X.1 编译的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swift 3.1 发布了,我在我的项目中收到此错误消息:

Swift 3.1 came out and I'm receiving this error message in my project:

使用 swift 3.1 编译的模块无法在 Swift 3.0.2 中导入

Module compiled with swift 3.1 cannot be imported in Swift 3.0.2

那么我该如何告诉 Xcode 开始更新我的项目并将其迁移到 Swift 3.1?

So how do I tell Xcode to start updating my project and migrate it to Swift 3.1?

推荐答案

您可能包含了 3rd 方框架/库.这些是需要更新/重新编译的内容.如果您使用 Carthage 或 Pods,您应该重建这些库并使它们可用于您的应用程序.问题不在于您的代码.编译的时候会编译成3.1

It is likely that you are including 3rd party frameworks/libraries. Those are what need to be updated/recompiled. If you are using Carthage or Pods you should just rebuild those libraries and make them available to your app. The problem isn't your code. When you compile it, it will compile to 3.1

这篇关于无法在 Swift X.0.2 中导入使用 swift X.1 编译的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆