I'm on the very latest Xcode 7.1 and my project uses Swift 2.1. I followed all the directions on the Swift website for getting started (Dynamic Framework tab) and everything builds just fine until I try to import RealmSwift
in my class. The compiler throws the following error on the line I try to import RealmSwift:
error: module file was created by an older version of the compiler; rebuild 'RealmSwift' and try again: /Users/USERNAME/Desktop/iosDev/PROJECTNAME/RealmSwift.framework/Modules/RealmSwift.swiftmodule/x86_64.swiftmodule
All the files are in the ${PROJECT_DIR}
root (RealmSwift.framework
and Realm.framework
).
I have searched and searched for an answer, updated Xcode, deleted and reconfigured the library. I'm not sure what it means by 'rebuild RealmSwift' (I'm new to swift). The error only throws when I try to use the library in my class or use the Xcode plugin to create a new Realm Model Object.