Oh goodness, I'm an idiot. I did not subclass NSObject. BTW, once I've
inherited from NSObject, is it still necessary to apply @objc?
And related, the ModuleName-Swift.h header that's generated isn't automatically
including the C header that's used by my Swift code (my Swift code wraps a C
API
Hey, Rick. I think we'd need a bit more information to really diagnose this—in
particular, the class declaration in Swift—but here are some possibilities:
- Classes that don't inherit from NSObject are not exposed to Objective-C
- Classes with any generic ancesters are not exposed to Objective-C,
My Objective-C file is importing "Module-Swift.h", and that file has some of my
other Swift classes, but not the one I just wrote. I've tried making the class
public, but I didn't need to do that on any of the others.
I've tried cleaning the build folder of my Xcode project, but I get the same