使用Swift 3.0编译的Realm的Swift模块不能在Swift 3.0.1中导入 [英] Realm's Swift module compiled with Swift 3.0 cannot be imported in Swift 3.0.1

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

问题描述

昨天我刚刚在Xcode 8上开始使用Realm 2.0.4,它运行良好.今天,我更新到Xcode 8.1,它将不再编译.我收到一条错误消息:无法在Swift 3.0.1中导入使用Swift 3.0编译的模块".

I just started using Realm 2.0.4 yesterday with Xcode 8 and it worked fine. Today I updated to Xcode 8.1 and it no longer will compile. I get an error saying "Module compiled with Swift 3.0 cannot be imported in Swift 3.0.1."

我该如何解决?我已经从嵌入式框架表中删除了Realm.framework和RealmSwift.framework,并在3.0.1版本中删除了该问题,但问题仍然存在.我已经删除了DerivedData文件夹,但是它没有用.

How can I fix this? I have deleted Realm.framework and RealmSwift.framework from the embedded framework table and dropped in the 3.0.1 version, but the issue persists. I have deleted the DerivedData folder and it didn't work.

我该怎么办?我没有使用CocoaPods或Carthage.

What do I do? I am not using CocoaPods or Carthage.

推荐答案

仅供参考,您可以尝试以下方法:

Just for future reference, a bunch of things that you can try:

  • 清理构建文件夹(在按住Option键的同时转到Xcode Product菜单,然后选择Clean Build Folder...)
  • 通过从项目中删除框架文件,再次复制它们,然后将它们重新添加到Embedded BinariesLinked Frameworks and Libraries项目设置中,来完全重新安装Realm.
  • Clean the build folder (Go to the Xcode Product menu while holding down the Option key, then choose Clean Build Folder...)
  • Completely reinstall Realm by deleting the framework files from the project, copying them in again, and re-adding them to the Embedded Binaries and Linked Frameworks and Libraries project settings.

这篇关于使用Swift 3.0编译的Realm的Swift模块不能在Swift 3.0.1中导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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