I am trying to use RealmSwift with my Xcode project. I have used it several times before, but since the last Xcode (8.2) update I keep getting the same error "Module compiled with Swift 3.0 cannot be imported in Swift 3.0.2".
I have tried installing it through cocoapods and I have tried installing it directly. I have tried changing the IOS. I have updated the pods and downloaded the latest version, but nothing is working.
I looked at similar issues posted on here with no luck:
Realm's Swift module compiled with Swift 3.0 cannot be imported in Swift 3.0.1
Module compiled with Swift 3.0 cannot be imported in Swift 2.3
Migrating from Swift 2.3 to Swift 3 with dependencies
Any advice would be appreciated.


Objective C Bridging Headerfile in build settings. Also clean and run your project without writing any code in swift file.