magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

using magical record 2.3 in bridging header #1204

Open matanporeh opened 8 years ago

matanporeh commented 8 years ago

hi i have an objective c project that is using the latest MR via cocoa pods recently i started adding swift classes to my project so naturally i have a bridging header. now i am trying to access MR methods via my new swift classes but it just doesn't work i saw some tutorials talking about importing "CoreData+MagicalRecord.h" but there is no such file in the pods project i also tried importing "MagicalRecord.h" via the bridging header and it didn't work as well please note that other than my swift classes, all my ObjC classes have no problems using MR methods

please guide me to how exactly my bridging header should look like and if i should import MagicalRecord explicitly in my swift classes

p.s - in my pod files i am not using the 'use_frameworks' flag since i need my project to support iOS 7.1 and above