CIFilter的便利初始化程序给出了奇怪的例外

这是我正在尝试的代码,

typealias Parameters = Dictionary extension CIFilter { convenience init(name: String, parameters: Parameters) { self.init(name: "CIGloom") setDefaults() for (key, value: AnyObject) in parameters { setValue(value, forKey: key) } } var outPutImage: CIImage { return self.valueForKey(kCIOutputImageKey) as CIImage } } 

self.init(name: "CIGloom")期间发生exception,我尝试了不同的filter名称但结果是相同的。

 2014-11-11 15:08:27.866 HelloCIFilter[15217:451450] +[NSObject customAttributes]: unrecognized selector sent to class 0x10e26fd28