I have the same problem that was reported in a previous thread on devforums.apple.com in thread/231762/
I have an existing document-based Mac app that I ported to Swift. The code compiles, but when I try to create a new document, an alert opens saying "No document can be created." The Xcode debug console has the following message:
The *** type doesn't map to any NSDocumentClass.
I have read the solution from Mark Szymczyk :
give the Product Module Name build setting a value. In the Info.plist file, enter the following for the Cocoa NSDocument Class field:
Module.Class
Where Module is the value you entered for the Product Module Name build setting and Class is the name of your NSDocument subclass.
I did it, I cleaned the build, but still have the problem ; I suspect I do not enter the right Module name.
What is exactly the module name to enter (where is it defined exactly ?) ; I have a project name with spaces ; I have replaced the space by hyphens " - " ; is it the right thing to do ?