As per document here: Using Swift With Cocoa and Objective-C
we need to have fully qualified name to get a class from
The fully qualified class name is
<product module name>.<class name>
Xcode derives a module name from the target name when a new target is created. If the target name is a valid module name then both will be equal by default. Otherwise Xcode replaces invalid characters by an underscore. The product module name can also be configured in the build settings.