NSPersistentDocument: *** Assertion failure in -[NSVBSavePanel viewWillInvalidate:]
If you get the following error when saving your new NSPersistentDocument:
This is due to the fact that, by default, Xcode only adds the "Read Only" permission to "User Selected File".
Change it your Target > Capabilities > App Sandbox settings and rebuild!