lanza
lanza

Reputation: 1632

Using an Objective-C file in Swift project. Importing the header file in the bridging header causes the `#import "Module-Swift.h"` to fail

I have one Obj-C class (one .h, one .m) in my project and about seven Swift files. When I use #import "Class.h" in the bridging header, it causes Xcode to lose the #import "ModuleName-Swift.h". If I don't import the Class.h header file in the bridging header, #import "ModuleName-Swift.h" works just fine.

Any ideas how to fix this?

Upvotes: 0

Views: 149

Answers (1)

lanza
lanza

Reputation: 1632

This enforces a recursive requirement and thus won't work.

Upvotes: 1

Related Questions