I am having an issue with the Appdelegate method OpenURL.

I have setup my Imported UTI's and Document Type. But when opening my app from a mail attachment, the app crashes immediately when I have the method implemented.

The depreciated handleOpenURL works, but not OpenURL?

At the moment I have no code in the implementation, and am just returning true.

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String, annotation: AnyObject?) -> Bool { return true }

The crash says Thread 1: EXC_BAD_ACCESS (code-1, address-0x0)

I don't really want to have to use the deprecated method.