Evgeniy Kleban
Evgeniy Kleban

Reputation: 6940

Can't import Obj-C framework in Swift

I install LGSideMenuController to Swift project with Cocoa Pods. I created bridging header, and added following:

#import <LGSideMenuController/LGSideMenuController.h>

#import "UIViewController+LGSideMenuController.h"

However, xcode highlight #import "UIViewController+LGSideMenuController.h" and says that file not found.

But file exist in pods directory. How to fix that?

Note. I already fix issue with #import "LGSideMenuController.h", maked it #import <LGSideMenuController/LGSideMenuController.h> instead But for #import "UIViewController+LGSideMenuController.h" that have no effect and error isn't gone.

Upvotes: 0

Views: 390

Answers (1)

dhin
dhin

Reputation: 473

Did you set your bridging header in build settings

Settings

Upvotes: 1

Related Questions