It was both. Turned out that in a CocoaPod imported lib there was a category on UIAlertController that returned in -supportedInterfaceOrientations UIInterfaceOrienationPortrait instead of UIInterfaceOrienationMaskPortrait.
It was both. Turned out that in a CocoaPod imported lib there was a category on UIAlertController that returned in -supportedInterfaceOrientations UIInterfaceOrienationPortrait instead of UIInterfaceOrienationMaskPortrait.