OS X Photos extension: object cannot be nil

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?

I've run into this same issue with a Swift extension. I got past it using Obj-C... I'd imagine if it's related to Swifty extensions this may get fixed in the next beta round.

Great, in Xcode 7 beta 3 the extension no longer shows up in Photos. 😠 Anyone get this to work?

Hello Jordan, have you had any luck in resolving this issue? I am not a developer, but fear my library is corrupt because I'm getting the same "setObjectForKey: object cannot be nil" message you are. (For me, it's in the PowerPhotos app)


Also I'm getting "Could not determine the version of the database for the library at [path/libraryname.photoslibrary]"


Any ideas?


Thank you in advance.

Sorry, I havent' looked into this any further since then.

OS X Photos extension: object cannot be nil
 
 
Q