BUG: Xcode 11.4+ iOS 13.4+ app rotates when it shouldn't

I have a mobile application that has been in production for years.


Recently, I noticed the app was rotating when building locally ONLY on simulators/devices with iOS 13.4+. When run on any iOS less than 13.4, the app does not rotate, as expected and designed.


This does not affect apps distributed through the App Store or App Center, which leads me to believe it is a bug with a recent Xcode release.


I've tried updating to Xcode 11.5 and it is still a bug.


Is anyone else seeing this issue?

Replies

What happens

Recently, I noticed the app was rotating

Do you mean that holding the device in portrait, it displays in landscape ?

In which device models ?


What do you mean by locally :

when building locally

Yes, when building locally. Xcode 11.4 - 11.5 building on simulator device with iOS 13.4+. The app is supposed to be locked in portrait and only ever used in portrait. When rotating a simulator device or real device when building from Xcode, the app is allowing it to rotate to landscape.


What's weird is that when using Xcode 11.4 - 11.5 with a device that's prior to 13.4, it stays locked in portrait like it is designed to.