【发布时间】:2017-09-26 18:34:12
【问题描述】:
我正在尝试使用使用 pod 安装的 Realm 构建一个项目。我已经这样做了:
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
尽管所有内容都设置为 Swift 3.2,尽管清理了所有内容,尽管删除了派生数据,尽管重建了所有内容。我仍然不断收到此错误:
“使用 Swift 3.0.2 编译的模块无法导入 Swift 3.2”。
RealmSwift 库是这么说的。
为什么,当 RealmSwift 目标设置为 3.2,并且它已经被重建时,为什么它仍然说它的 3.0.2?
【问题讨论】: