-
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
Changing to @import causes build errors #1139
Comments
That's because CocoaPods completely ignores the Xcode project 😦 Telling Cocoapods to use frameworks would probably fix it, but I'll have a look when I have some time. |
I'm already building with
|
Yeah, there's probably some CocoaPods setting you could have fiddled with here, because not supporting But I don't have time to muck about with CocoaPods, so I've just reverted to using the older framework import syntax. Let me know if this doesn't work for you. |
That does seem to fix the problem. Thanks! On further investigation, it seems that it may be a problem with ObjectiveC++ (which we use a fair amount of). An answer to a Stack Overflow question suggests that the flag |
The changes in ffbe551 cause my builds to break with the error:
This occurs in a cocoapods-based project (using the release/3.0 branch by :git/:branch) with Modules enabled in the build settings for this project (though not used anywhere else). The error occurs when compiling the application's PCH, using
#import <MagicalRecord/MagicalRecord.h>
. I've tried replacing that with@import MagicalRecord
with the same error.Any hints how to get around this? Since Xcode 6+ (and perhaps earlier) treats #import the same as @import, it doesn't make much sense as to why this change is needed...
Thanks!
The text was updated successfully, but these errors were encountered: