I have tried creating an instance of a class using a string in numerous ways with none of them working in Swift 3.
Below are pre-Swift 3 sol
If you project contains space you should replace space with '_'
Something like this
let namespace = (Bundle.main.infoDictionary!["CFBundleExecutable"] as! String).replacingOccurrences(of: " ", with: "_") let cls = NSClassFromString("\(namespace).\(className)")! as! AnyClass