I have a UIViewController I created in my apps storyboard, as well as a custom UIViewController subclass which I added to the project (and is correctly in the compile phase
For macOS projects, creating a new class generated a class inheriting from NSObject instead on NSViewController.
macOS
NSObject
NSViewController
Change from
import Cocoa class AppsViewController: NSObject { }
to
import Cocoa class AppsViewController: NSViewController { }