Has anyone had any luck obtaining the `NSBundle` f...
# kotlin-native
p
Has anyone had any luck obtaining the
NSBundle
for a K/N iOS Framework from within the framework? I’d like to use
NSBundle.bundleForClass(ObjCClass)
however this seems to return the Application bundle. If I call
Bundle.init(for: ClassFromFramework.self)
in Swift I get the right bundle.
to call
bundleForClass
I’m creating a class in
iosMain
as follows:
Copy code
class BundleReferenceClass: NSObject() {
    companion object: NSObjectMeta()
}
and calling
NSBundle.bundleForClass(BundleReferenceClass)