Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Extension's principal object should not be nil'

I have an intent extension to handle siri intents, everytime I try to trigger the shortcut it says My Application failed. I checked the logs and when the extension is called it produces the following error:

libc++abi.dylib: terminating with uncaught exception of type NSException

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Extension's principal object should not be nil'
terminating with uncaught exception of type NSException


The extension was working fine before and I have not made any changes to it. Any idea on what the principle object is for extensions so that I can check that
Extensions are configured with values in the Info.plist that tell the system what class in the app to use when starting the extension. If the system tries create an object from a class that doesn't exist, the system sees a nil object.

The key controlling this is NSExtensionPrincipalClass under NSExtension. Verify that the value for that key points to a valid class in the app. For example, if your main intent handler class is called IntentHandler, the value of this key should be $(PRODUCT_MODULE_NAME).IntentHandler.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Extension's principal object should not be nil'
 
 
Q