Missing import in Swift projects #786

Closed
davidlawson opened this Issue Jun 7, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@davidlawson

There is a missing #import <Foundation/Foundation.h> in the MagicalRecord header files, causing issues when this is not in a .pch file (as is the case with most Obj-C projects).

This means I have to put this in my bridging header file:

#include <Foundation/Foundation.h>
#import <MagicalRecord/CoreData+MagicalRecord.h>
@tonyarnold

This comment has been minimized.

Show comment
Hide comment
@tonyarnold

tonyarnold Jun 21, 2014

Contributor

I haven't even started looking at MagicalRecord with Swift yet — would you mind putting together a PR to fix this? Otherwise it'll be the end of next week before I can fix it.

Contributor

tonyarnold commented Jun 21, 2014

I haven't even started looking at MagicalRecord with Swift yet — would you mind putting together a PR to fix this? Otherwise it'll be the end of next week before I can fix it.

@tonyarnold

This comment has been minimized.

Show comment
Hide comment
@tonyarnold

tonyarnold Jul 3, 2014

Contributor

Can you give me the output when you compile without adding #import <Foundation/Foundation.h> (check yours — don't use #include with frameworks)? That'll give me a headstart.

Contributor

tonyarnold commented Jul 3, 2014

Can you give me the output when you compile without adding #import <Foundation/Foundation.h> (check yours — don't use #include with frameworks)? That'll give me a headstart.

@davidlawson

This comment has been minimized.

Show comment
Hide comment
@davidlawson

davidlawson Jul 3, 2014

<unknown>:0: warning: ../Pods/Headers/MagicalRecord/CoreData+MagicalRecord.h:3: MagicalRecord requires blocks
<unknown>:0: warning: ../Pods/Headers/MagicalRecord/CoreData+MagicalRecord.h:3: MagicalRecord requires blocks

@tonyarnold tonyarnold closed this in d18e74f Jul 3, 2014

naqi added a commit to naqi/MagicalRecord that referenced this issue Apr 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment