Closed
Description
I'm trying to load a swift dylib containing an ObjC compatible class, FooClass
. The swift compiler has a concept of "modules", and the class name is prefixed with the module name, blah
. So when the Dart wrapper tries to load FooClass
it fails, because the full name is blah.FooClass
. When I manually modify the Dart wrapper to load blah.FooClass
, it works fine.
- First I need to figure out how to do this in pure ObjC. Is there a module annotation or something?
- Second, is there a libclang function that can get the module name for a class? If so, this is an easy bug to fix.
- Otherwise we'll need to add a way of specifying the module name in the config per class (because
NSObject
etc don't have a module name).