I'm trying to get started creating a Photos extension for OS X. After changing UIViewController to NSViewController and UIImage to NSImage in the template, opening Photos, hitting Edit, I select my extension in the list of plugins, but then the extension crashes before viewDidLoad is called. This is logged:
2015-06-28 12:30:23.927 extension[1911:678982] An uncaught exception was raised
2015-06-28 12:30:23.927 extension[1911:678982] *** setObjectForKey: object cannot be nil (key: <__NSConcreteUUID 0x7fb993d1fe30> 04015FC0-C1BB-4DF8-A48F-7C89B4642AC2)
What can I do to resolve this?