Device Orientation Bug

I just created a new Xcode project, and only selected portrait orientation, but when I rotate my iPhone, it shows the landscape view as well. Any idea why?

Watch this: https://imgur.com/a/CXk02KL

iPhone Version 15.0 | Xcode Version 13.0

Replies

I do not see anything on your screen that shows rotation. It looks like a uniform color screen. What am I missing ?

I did repeat the test on an app, with Xcode 13 and iOS 15 (simulator), it works correctly.

  • Don't you see the status bar going away when I rotate the phone? Try it on a device, not a simulator.

Add a Comment

I think it's a bug that GUI operations don't work. Currently it can be changed in Custom iOS Target Properties on the Info tab.

  • Thank you, that helped.

  • I had the same issue, and was editing the Info.plist file directly as described in: https://www.jessesquires.com/blog/2021/11/13/xcode-13-device-orientation-bug/, but that didn't work, what did work is this answer, which ended up changing the file: project.pbxproj, not Info.plist. So now I'm confused as to what Info.plist is for.

Add a Comment