0

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?

3
  • Are you using swift components in your .m file ? Cause it will be a circular reference Commented Dec 5, 2016 at 8:33
  • Sounds like you have swift reference in Class.h Commented Dec 5, 2016 at 8:34
  • Duplicate of stackoverflow.com/questions/24098408/…? Commented Dec 5, 2016 at 8:36

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.