To disable landscape mode in Xcode, you generally stop the app from declaring landscape orientations in its Info configuration and then make sure the view controllers that can rotate agree with that list. In current Xcode versions the supported path is the target’s Info tab: under Supported Interface Orientations, uncheck Landscape Left and Landscape Right. If your project predates Xcode 13 or uses a hand-maintained Info.plist without that section, edit the UISupportedInterfaceOrientations array directly. The build must be rebuilt and reinstalled, because orientation declarations are read at launch; rotating the simulator alone won’t reflect the change.

The rest of this guide covers the exact steps for both project styles, the per-device variant that trips people up (iPad), the code-level overrides that can still force landscape, and how to verify the lock actually holds on every device family you ship.

What “disabled” means at each layer of an iOS app

Rotation is a negotiation between three parties, and disabling landscape requires all of them to agree.

The first layer is the bundle declaration. The app’s Info dictionary lists supported orientations for iPhone and, separately, for iPad. This list is a hard ceiling: iOS will never rotate the interface into an orientation the bundle doesn’t declare, regardless of what any view controller requests.

The second layer is the view controller. Each UIViewController can override supportedInterfaceOrientations to return a subset of the app-level list. For a navigation controller or tab bar controller, the container’s own override matters, and by default a UINavigationController consults its top view controller. A screen that returns .landscape while the bundle forbids landscape is a contradiction the system resolves in favor of the bundle, but a screen that returns .all inside a landscape-permitting bundle will still rotate.

The third layer is the app delegate, which can implement application(_:supportedInterfaceOrientationsFor:) to apply a global mask at runtime. This is where apps implement things like “lock to portrait except during video playback.”

Disabling landscape cleanly means setting the app-level list to portrait (and possibly upside-down) and making sure no controller override or delegate method reintroduces landscape. Most “it still rotates” reports come from fixing only one layer.

Before you start: identify what your project actually uses

Apple moved orientation configuration around, and the correct instructions depend on which mechanism your project relies on.

Since Xcode 13, targets use build settings and an auto-generated Info.plist. The Info tab of the target editor shows a Supported Interface Orientations section with a visual grid of checkboxes for iPhone and iPad. This is a build-setting-backed representation: toggling those boxes writes to the INFOPLIST_KEY_UISupportedInterfaceOrientations family of build settings rather than to a file you edit by hand.

Older projects, or projects that deliberately keep a physical Info.plist, expose a raw key-value table instead. There you edit the UISupportedInterfaceOrientations array and its iPad sibling UISupportedInterfaceOrientations~ipad directly.

Some projects use both: a checked-in Info.plist plus build settings that override specific keys. If a checkbox change doesn’t seem to stick, look for an INFOPLIST_KEY_ build setting at the target or project level that reasserts landscape.

Two quick checks settle it. Open the target’s Build Settings and search for “orientation” — if you see INFOPLIST_KEY_UISupportedInterfaceOrientations, the build-setting mechanism is active. Then open the Info tab: a checkbox grid means the modern path; a plain key table means the plist path.

There’s also a platform consideration. iPhone and iPad have separate lists, and iPad multitasking has its own rules discussed below. If you ship a Mac Catalyst or visionOS variant, each has a separate orientation story; this guide focuses on iOS and iPadOS.

The primary procedure: unchecking landscape in the target’s Info tab

This is the path for a current Xcode project, and it’s the one most people should follow.

Prerequisites: Xcode installed with the project open, the target selected in the project navigator, and a scheme that builds the app for a simulator or device. No code access is required for this step.

1: In the Project navigator, select the project file, then select the app target in the targets list. 2: Open the Info tab. You’ll see sections including Custom iOS Target Properties. 3: Find Supported Interface Orientations. On current templates it appears near the top with a small device-orientation grid and checkboxes for Portrait, Upside Down, Landscape Left, and Landscape Right, split by device family. 4: Under the iPhone column, uncheck Landscape Left and Landscape Right. Leave Portrait checked. Decide on Upside Down separately — many apps leave it off on iPhone, and iOS itself rarely honors it on notched iPhones. 5: If the app runs on iPad, repeat in the iPad column unless you intend to keep landscape there. 6: Build and run on a simulator or device (Command-R). Rotate with Command-Left Arrow or Command-Right Arrow.

Expected result: the interface stays in portrait while the device or simulator rotates; in the simulator the app window visibly refuses to reflow.

How to confirm it worked: rotate through all four orientations. If the app snaps back to portrait within a moment, the bundle list is doing its job. Then check the generated Info.plist inside the built app: select the built product in the Products group or use the build log’s app path, open the bundle’s Info.plist, and confirm the orientation array contains only the portrait values. That file is the ground truth the system reads.

If you changed the checkboxes but the built plist still lists landscape, a build setting is overriding the checkbox state — the failure mode described next.

The plist path for hand-maintained or older projects

Projects with a physical Info.plist in the file navigator need the array edited directly, and this path also applies when the checkbox grid is absent.

Prerequisites: locate the Info.plist that the target actually uses. It’s usually in the app target’s folder, but a customized INFOPLIST_FILE build setting can point elsewhere; check Build Settings for “Info.plist File” if the obvious file doesn’t match the app’s behavior.

1: Open the Info.plist. Xcode may show it as a property list editor or as source XML depending on the file type. 2: Find UISupportedInterfaceOrientations. It’s an array of strings, typically containing UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, and UIInterfaceOrientationLandscapeRight. 3: Delete the two landscape entries, keeping UIInterfaceOrientationPortrait. Add UIInterfaceOrientationPortraitUpsideDown only if you want it. 4: If the file contains UISupportedInterfaceOrientations~ipad, edit that array too. Its absence means iPad falls back to the base list. If iPad should stay portrait-only, either remove landscape from the iPad array or delete the iPad array so the base applies — but see the multitasking caveat below before deleting it. 5: Clean the build folder (Product → Clean Build Folder, Shift-Command-K), then build and run.

Expected result: identical to the checkbox path — portrait-only behavior.

Check: the cleaned, rebuilt app bundle’s Info.plist should now show the reduced array. A stale bundle is a common reason a correct plist edit appears to do nothing; a clean build removes that doubt.

Two failure modes are worth naming. First, duplicate keys: plist files can technically contain the same key twice, and the behavior is not something to rely on — search the raw XML (right-click the file, Open As → Source Code) and remove duplicates. Second, a build setting override: if INFOPLIST_KEY_UISupportedInterfaceOrientations is set anywhere above the target, it can win over the file. Clear that setting or align it with the plist.

The iPad exception that catches almost everyone

On iPad, “portrait only” has a catch. iPadOS requires apps that support multitasking to declare all four orientations. If your app declares only portrait orientations for iPad and does not opt out of multitasking, the system treats the declaration as incompatible and adopts all orientations at runtime. Your careful plist edit appears to be ignored, and the app rotates on iPad while behaving correctly on iPhone.

There are two legitimate resolutions, and picking the right one is a product decision rather than a technical one.

Keep portrait-only and opt out of multitasking. Set UIRequiresFullScreen to YES (Boolean) in the Info plist. The app then runs full-screen only, doesn’t participate in Split View or Slide Over, and honors a portrait-only orientation list. This is the correct choice for apps that genuinely cannot function in landscape, such as certain camera-driven or kiosk-style apps. The trade-off is real: no multitasking means users can’t run your app beside another.

Keep multitasking and accept all orientations on iPad. If you want Split View and Slide Over, remove the iPad-specific landscape restriction and instead constrain orientation per screen in code where it matters. The app will rotate in multitasking contexts, but individual view controllers can still refuse landscape by overriding supportedInterfaceOrientations.

For apps that ship on both families and want portrait-only on iPhone with flexibility on iPad, the clean configuration is a base array containing portrait only and an iPad array containing portrait and both landscape values, leaving UIRequiresFullScreen off. That combination is the documented, supported pattern, and it avoids the runtime override entirely.

When code still rotates your screens

If the configuration is right and rotation persists, the remaining suspects are code-level overrides. Test each layer in this order, since these are reversible checks that don’t require guesswork.

Start with the app delegate. Search the project for supportedInterfaceOrientationsFor. A delegate implementation returns a mask applied app-wide; if it includes .landscape, rotation returns. A common pattern uses a settable property so a video player can temporarily allow landscape. If you find one and want a global lock, return only .portrait.

Then check view controllers and containers. Search for supportedInterfaceOrientations and shouldAutorotate overrides. Any controller returning .all or .landscape inside a portrait app is a contradiction, but any controller returning .all inside an app-level mask that still permits landscape is the actual cause. Pay attention to custom container controllers, which decide on behalf of their children and can reintroduce landscape in non-obvious ways.

Watch for presentation-related exceptions. Some system presentations — full-screen video, camera capture, share sheets — run in their own process or with their own rules. A landscape video player inside a portrait-locked app is expected behavior from the media framework, not a failure of your configuration. Likewise, iPad multitasking and some stage manager arrangements adopt the system’s orientation policy rather than your declared list.

Check for secondary targets and extensions. Widgets, share extensions, and watchOS companions have their own Info.plists. If the wrong thing is rotating, confirm you edited the right target.

The stop condition: if you’ve confirmed the built app bundle declares portrait only, no delegate or controller override reintroduces landscape, and the app still rotates on a physical device with current iOS, that’s past the point of configuration guessing. It’s worth dating the device’s iOS version and checking Apple’s release notes for the OS before filing a feedback report — and if the behavior is tied to a device-management profile or a supervision setting, that falls to your organization’s mobile device management administrator rather than to Xcode.

Verifying the lock across devices, simulators, and launch states

Orientation bugs hide in places single-device testing misses, so verification deserves its own pass.

Run on an iPhone simulator and rotate through all four orientations with the rotate commands; the app should snap back to portrait in every case. Repeat on an iPad simulator, both with the app in full screen and with another app beside it, to confirm whether multitasking behavior matches your intended configuration. Test on a physical iPhone and, if you have one, a physical iPad — the simulator has historically been more forgiving about orientation policy.

Test cold launch while the device is physically held in landscape. iOS reads the launch orientation from the bundle declaration, and a misconfigured app briefly appears in landscape before snapping, or stays there. The app should launch in portrait regardless of device attitude.

Finally, test on the oldest iOS version your app supports if you maintain one, using an older simulator runtime. The orientation APIs are stable, but the multitasking rules around UIRequiresFullScreen evolved over multiple releases, and the configuration that’s clean on the current OS is worth confirming on older ones you still ship to.

Simulator and preview details worth knowing

Two tooling behaviors confuse people during this work.

In the iOS simulator, rotation is a simulation of device behavior; if Hardware → Rotate Left doesn’t produce a change, confirm the change was rebuilt — running an old build is the single most common false negative. Also note that the simulator’s rotate commands are keyboard shortcuts; on a Mac without arrow keys in reach, the Device menu has the same commands.

SwiftUI previews are a separate surface. A preview doesn’t consult the app bundle’s orientation list the way a running app does, so a preview may render a layout in landscape dimensions even though the shipped app will never rotate there. Treat previews as layout checks, not orientation checks. For SwiftUI apps, the runtime lock still comes from the bundle declaration plus the delegate; the .supportedInterfaceOrientations-style overrides that SwiftUI views can request are advisory and resolved through the hosting controller.

FAQ

Does disabling landscape stop the app from ever rendering wide? In practice, yes on iPhone and in full-screen iPad use. Two exceptions exist: apps that opt into iPad multitasking may be placed in wider split-screen proportions, and system-presented content like video can run in landscape regardless of your declaration. Both are expected, not bugs.

Can users override my portrait-only setting? Users can’t force an app into landscape through Settings, but on a device where rotation lock is enabled the system simply never rotates anything. Your restriction and the user’s rotate-lock setting both operate at the same effect level, and there’s no conflict to resolve.

What about Stage Manager on iPad? Under Stage Manager, windows can be resized into landscape-like proportions even for portrait-declared apps in some configurations. If precise orientation control matters there, test explicitly on a Stage Manager–capable iPad; the bundle list is not the only factor in that environment.

I changed the checkbox but the generated plist still lists landscape. Why? Almost always a build-setting override, typically an INFOPLIST_KEY_UISupportedInterfaceOrientations value set at the project level or inherited from a configuration. Search Build Settings across all configurations, clear the conflicting value, clean, and rebuild.

The configuration is small, but the layers beneath it are why landscape sometimes survives a correct-looking change. Fix the declaration, confirm the built bundle, then walk the code overrides — and let the device matrix in the verification step be the final word.