2017-09-26 131 views
0

我试图使用使用pod安装的Realm来构建项目。尽管重建一切XCode 9:使用Swift 3.0.2编译的模块无法在Swift 3.2中导入

1) Updated to XCode 9 
    2) Run "pod update". Note the podfile has SWIFT_VERSION set to 3.2 
    3) Checked in XCode settings that Swift Language version is set to 3.2 
     for all the projects and targets. 
    4) Deleted derived data 
    5) Cleaned everything 
    6) Quit and re-launched XCode 
    7) Rebuilt everything, including explicitly rebuilding the Realm targets 

尽管一切都被设定为3.2雨燕,尽管清洗了一切,尽管删除导出的数据:我已经这样做了。我仍然得到这个错误:

"Module compiled with Swift 3.0.2 cannot be imported in Swift 3.2".

这是说RealmSwift库。

为什么当RealmSwift目标设置为3.2并且已经重建时,为什么为什么它仍然会说它的3.0.2?

回答

0

试试这个:

  1. 从您的POD文件中删除RealmSwift
  2. 运行荚更新
  3. 重新添加RealmSwift到您的吊舱文件
  4. 运行荚更新
  5. 清理项目
  6. 建立并运行
+0

虽然“以下二进制文件使用Swift:RealmSwift和我的应用程序的不兼容版本”,但我现在明白了这一点,但两者中的所有内容都设置为3.2。 – Gruntcakes

+0

现在执行以下操作:1:清理项目。 2:关闭项目并退出Xcode。 3:清理派生数据。 4:再次打开项目并重新运行 –

+0

仍然是一样的东西 – Gruntcakes

相关问题