Post

Replies

Boosts

Views

Activity

Swift and Objective C interoperabiloty
I am working on the project in which we are migrating from iOS project to framework. I am facing issue with Objective-C and swift interoperability. I have one Swift class let suppose profile, it has been exposed to objective c import Foundation @objc public class Profile: NSObject { @objc public var name : String? @objc public func getName() -> String{ return "XYZ" } } When I am importing “ProductName-Swift.h” it is showing me error in generated header for the module map like “@import ModuleMapPrivate not found” I wanted to know is there any way in which I can import “Profile-Swift.h” instead of “ProductName-Swift.h” ?
3
0
575
Dec ’23