-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+[NSManagedObjectModel setDefaultManagedObjectModel:]: unrecognized selector #665
Comments
I've got this lately too with other errors: |
There should be a new podspec up on the repo. Try a ‘pod update’ command to download the updates. |
I found problem in Pods-MagicalRecord-prefix.pch file must be like this #ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-environment.h"
#ifdef __OBJC__
#define MR_SHORTHAND
#import "CoreData+MagicalRecord.h"
#endif |
Thanks, adding #define MR_SHORTHAND to Pods-MagicalRecord-prefix.pch worked for me also. Suspect the issue stems from this pull request: CocoaPods/Specs#7699 |
That pull request adds a subspec that you can use for the defines. We did this so the shorthand syntax wouldn't be enabled by default. You can now use |
@Keithbsmiley +1 . Thanks |
its also important to have the "-ObjC" flag in your projects other linker flags |
Hello,
I've been implementing a custom static framework for iOS and i have integrated the MagicalRecord library to my framework, everything was working well until my recent pod update ( today). Here is the MagicalRecord setup code
And to import the ShortHand categorie i am doing in .pch :
it seems that MagicalAggregationShortHand is not imported :
The text was updated successfully, but these errors were encountered: