I'm trying to build a project using Realm which is installed using pods. I've done this:
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
Despite everything being set to Swift 3.2, despite cleaning everything, despite deleted derived data, despite rebuilding everything. Still I keep getting this error:
"Module compiled with Swift 3.0.2 cannot be imported in Swift 3.2".
It is saying this for the RealmSwift library.
Why, when the RealmSwift target is set to 3.2, and it has been rebuild, why why why is it still saying its 3.0.2?
Try this:
RealmSwift
from your pod fileRealmSwift
to your pod file