Error In mac catalyst that I can't track down

I have an iOS app I've added Catalyst support to. It is a UIDocument based app using a UIDocumentBrowserController subclass. When the app launches a file browser SHOULD appear in front of the app window. And if I have launched the app for the first time or it was force quit the last time it was used this works as intended. However if I open a document and then quit the app either by closing the app window or choosing AppMenu -> Quit then launch the app again I get an error dialog that only Says "No document could be created" with an okay button. When you click okay the app window comes to the front covering the document browser creating an app killing problem that is confusing for users. Yes they can go to file -> New or File -> Open Document but the situation is very confusing. I have tried returning false for these functions in my AppDelegate:

func application(_ application: UIApplication, shouldSaveApplicationState coder: NSCoder) -> Bool { return false }

func application(_ application: UIApplication, shouldRestoreApplicationState coder: NSCoder) -> Bool {
    return false
}

func application(_ application: UIApplication, shouldSaveSecureApplicationState coder: NSCoder) -> Bool{
    return false
}

And I've added NSQuitAlwaysKeepsWindows = No in my info.plist and the problem persists. I have set a break point in my document's init(fileURL:) function but it is not called so I have no idea what document is attempting to be created or how to stop it.

I found the answer. I had included a MacOS key in my info.plist that should not have been there.

Error In mac catalyst that I can't track down
 
 
Q