Anyone faced problems in {Module_name}-Swift.h file for Swift 4 projects? I've noticed -Swift.h autogenerated file not working well with Swift 4 syntax unlike Swift 3.2!.
For example, -Swift.h file doesn't contain all variables and methods which implemented in the custom Swift classes which inherited from NSObject class!
I've used @objc and @classkeywords but no way.
- I don't get any errors! the problem is if I've created a class like this:
import Foundation class Utils: NSObject { let abc: String? func xyz() { print("") } }
and navigate to {Module_name}-Swift.h I see something like that:
SWIFT_CLASS("_TtC3{Module_name}5Utils")
@interface Utils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
Problem
Both let abc: String? and func xyz() have been never included in {Modue_name}-Swift.hfile!