UIPrintPanelNavigationController crash when tapping print option. in share sheet

I am presenting a UIActivityViewController controller on button tap with print option in the UIActivityViewController. My app only supports portrait mode.

when i tap the print option app crashes with following error.

*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [UIPrintPanelNavigationController shouldAutorotate] is returning YES' *** First throw call stack:

UIPrintPanelNavigationController crash when tapping print option. in share sheet
 
 
Q