Skip to content
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

"Use of @import when modules are disabled" Error #116

Open
hemster opened this issue Oct 21, 2016 · 2 comments
Open

"Use of @import when modules are disabled" Error #116

hemster opened this issue Oct 21, 2016 · 2 comments

Comments

@hemster
Copy link

hemster commented Oct 21, 2016

After do pod install in my OC project, I tried to put
#import "MZFormSheetPresentationViewController.h"
in my Home View Controller and put
MZFormSheetPresentationViewController *formSheetController = [[MZFormSheetPresentationViewController alloc] initWithContentViewController:self.navigationController];
in a method.

However, I got 3 same "Use of @import when modules are disabled" errors in MZTransition.h, MZFormSheetPresentationViewControllerAnimatedTransitioning.h and MZFormSheetPresentationContentSizing.h

The Xcode8 indicate these errors are caused by this line
"@import UIKit;"

Does anyone how to fix it?

@hemster hemster changed the title "use of @import when modules are disabled" Error "Use of @import when modules are disabled" Error Oct 21, 2016
@Sensotec
Copy link

Sensotec commented Nov 7, 2016

Having the same issue, have tried multiple fixes.
No luck so far. Seems like you cannot use this library in an objective c++ class.

@levey
Copy link

levey commented Sep 30, 2017

Created PR in #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants