• iOS
  • UIKit
  • Xcode
  • app lifecycle

UIKit apps built with the iOS 27 SDK must adopt scenes: check and migrate before April 2027

Why an app-delegate-only UIKit app fails to launch when built with the iOS 27 SDK, how to tell in a minute whether your project is affected, and a step-by-step migration to a SceneDelegate, including the URL, background and window code that silently stops working.

Imagine an iPhone app you wrote years ago. It still sells, it still builds, and every spring you rebuild it with the newest Xcode because the App Store requires it. Next spring that routine rebuild produces an app that opens to a black screen and closes. Nothing in your code changed; the SDK you linked against did.

Apple’s UIKit documentation states it plainly: “Beginning in iOS 27, iPadOS 27, Mac Catalyst 27, tvOS 27, and visionOS 27, apps built with the latest SDK must adopt the scene-based life cycle or they fail to launch.” Transitioning to the UIKit scene-based life cycle And Apple’s submission page says that, starting April 2027, iOS and iPadOS apps uploaded to App Store Connect “must be built with the iOS & iPadOS 27 SDK or later, and target iOS 15 or later.” Submit your apps

Put together: if your UIKit app has never adopted scenes, you have until roughly April 2027 to migrate before you can no longer ship updates. This article shows how to check your project, what to move, and which pieces of code keep compiling but stop being called.

The words you need

  • UIKit: Apple’s older user-interface framework for iPhone and iPad apps, built around view controllers. SwiftUI is the newer one.
  • App delegate: the object (usually AppDelegate) that receives app-wide events such as “the app launched” or “the app went to the background”.
  • Scene: one instance of your app’s user interface. On iPhone there is normally one; on iPad a user can open two windows of the same app side by side, and each is a scene. UIKit represents it as a UIWindowScene.
  • Scene delegate: an object (usually SceneDelegate) that receives the events of one scene: it was created, became active, went to the background.
  • Life cycle: the sequence of states an app or a scene moves through, and the callbacks UIKit makes at each transition.
  • SDK (software development kit): the set of system libraries your app is compiled against. Xcode 27 ships the iOS 27 SDK. The rule above depends on the SDK you build with, not on the iOS version your users run.
  • Info.plist: the property-list file that describes your app to the system: its name, permissions, and, for scenes, a scene manifest.

What exactly changes

Before scenes, one app delegate handled everything: launching the process, creating the single UIWindow, and reacting when the app went to the background. The scene-based life cycle splits that in two. The app delegate keeps process-wide work, such as configuring analytics or registering for push notifications. Each scene gets its own window and its own foreground and background events. TN3187: Migrating to the UIKit scene-based life cycle

Apple has warned about this for several releases. According to the same technote:

  1. From iOS 18.4, UIKit logs This process does not adopt UIScene lifecycle. This will become an assert in a future version.
  2. In iOS 26 the message became UIScene lifecycle will soon be required. Failure to adopt will result in an assert in the future.
  3. In “the next major release following iOS 26”, apps built with the latest SDK that have not adopted scenes will not launch.

Two details are easy to get wrong:

  • Only the scene life cycle is required, not multiple windows. The technote says “While supporting multiple scenes is encouraged, only adoption of scene life-cycle is required.” You can keep one window and set UIApplicationSupportsMultipleScenes to false.
  • The trigger is the SDK, not the device. An Apple engineer explained on the developer forums that apps built against the next major SDK will not launch without scenes, and that Apple “cannot guarantee there will be zero issues” for apps built with the iOS 26 SDK on future systems either. Apple Developer Forums thread 813300 So staying on Xcode 26 is not a plan: the April 2027 upload rule ends it.

SwiftUI apps that use the App protocol already run on scenes, so this mainly affects UIKit apps, older Objective-C apps, and cross-platform apps whose iOS host is a UIKit app delegate.

Step 1: find out whether you are affected

Apple gives two conditions. You need to migrate if either is true: Transitioning to the UIKit scene-based life cycle

  • the UIApplicationSceneManifest key is missing from your Info.plist, or it has no scene configurations;
  • your app delegate does not implement application(_:configurationForConnecting:options:).

Checking one app by hand takes a minute. Checking several, or a codebase you do not know, is easier with a script. The one below is plain Python 3; it reads every Info.plist (XML or binary) with the standard plistlib module, and then lists app-delegate code that will need attention. Save it as scene_audit.py anywhere on your Mac.

#!/usr/bin/env python3
"""Report whether a UIKit project has adopted the scene-based life cycle."""
import plistlib
import re
import sys
from pathlib import Path

SKIP = {"Pods", "build", "DerivedData", ".build", "Carthage", "node_modules", ".git"}

# App-delegate code that stops being called, or needs a scene-aware
# replacement, once the app adopts scenes.
PATTERNS = {
    r"applicationDidBecomeActive": "move to sceneDidBecomeActive(_:)",
    r"applicationWillResignActive": "move to sceneWillResignActive(_:)",
    r"applicationDidEnterBackground": "move to sceneDidEnterBackground(_:)",
    r"applicationWillEnterForeground": "move to sceneWillEnterForeground(_:)",
    r"open url: URL|openURL:\(NSURL": "move to scene(_:openURLContexts:) + connectionOptions.urlContexts",
    r"continue userActivity|continueUserActivity:": "move to scene(_:continue:) + connectionOptions.userActivities",
    r"performActionFor shortcutItem|performActionForShortcutItem:": "move to windowScene(_:performActionFor:completionHandler:)",
    r"\.keyWindow\b|UIApplication\.shared\.windows": "single-window assumption; get the window from a scene",
}


def files(root, suffixes):
    for path in root.rglob("*"):
        if path.suffix in suffixes and not SKIP & set(path.relative_to(root).parts):
            yield path


def main(root):
    root = Path(root)
    adopted = False
    for plist in files(root, {".plist"}):
        if plist.name != "Info.plist":
            continue
        with plist.open("rb") as f:
            data = plistlib.load(f)  # reads XML and binary plists
        manifest = data.get("UIApplicationSceneManifest")
        configs = (manifest or {}).get("UISceneConfigurations") or {}
        if configs:
            adopted = True
            print(f"OK    {plist}: scene manifest with roles {sorted(configs)}")
        elif "CFBundleIdentifier" in data:
            print(f"MISS  {plist}: no UIApplicationSceneManifest configurations")
    for pbx in root.rglob("project.pbxproj"):
        if "INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES" in pbx.read_text():
            print(f"INFO  {pbx}: generated Info.plist includes a scene manifest; confirm it has configurations")
    sources = list(files(root, {".swift", ".m"}))
    if any("configurationForConnecting" in s.read_text() for s in sources):
        adopted = True
        print("OK    app delegate implements configurationForConnecting")
    for src in sources:
        for number, line in enumerate(src.read_text().splitlines(), 1):
            for pattern, advice in PATTERNS.items():
                if re.search(pattern, line):
                    print(f"CHECK {src}:{number}: {advice}")
    print("RESULT", "scene life cycle adopted" if adopted else "migration needed")
    return 0 if adopted else 1


if __name__ == "__main__":
    sys.exit(main(sys.argv[1] if len(sys.argv) > 1 else "."))

Run it from Terminal with the path to your project folder:

python3 scene_audit.py ~/Code/MyApp

I tested it with Python 3.11.18 on a small legacy project: an AppDelegate that creates its own window, saves data in applicationDidEnterBackground, handles deep links in application(_:open:options:), plus a helper that shows a toast through UIApplication.shared.windows.first. The output was:

MISS  Legacy/Legacy/Info.plist: no UIApplicationSceneManifest configurations
CHECK Legacy/Legacy/AppDelegate.swift:15: move to sceneDidEnterBackground(_:)
CHECK Legacy/Legacy/AppDelegate.swift:19: move to scene(_:openURLContexts:) + connectionOptions.urlContexts
CHECK Legacy/Legacy/Toast.swift:4: single-window assumption; get the window from a scene
RESULT migration needed

The exit code is 1 when migration is needed and 0 otherwise, so you can also run it in continuous integration. Read the CHECK lines as a to-do list, not as errors: the script matches text, so it can miss code that is spelled differently and can flag code that is fine. If your project uses an Xcode-generated Info.plist (no Info.plist file on disk), the INFO line shows that the “Application Scene Manifest (Generation)” build setting is on; the script cannot see what that generated manifest contains, so open the built app’s Info.plist and confirm it has scene configurations (or that your app delegate implements configurationForConnecting).

Step 2: add a scene manifest

What Apple calls the simplest way, and enough for apps that do not need dynamic configuration, is a scene manifest in Info.plist. In Xcode, select your app target, open General, and in Deployment Info select Scene manifest; or edit Info.plist directly: TN3187

<key>UIApplicationSceneManifest</key>
<dict>
    <key>UIApplicationSupportsMultipleScenes</key>
    <false/>
    <key>UISceneConfigurations</key>
    <dict>
        <key>UIWindowSceneSessionRoleApplication</key>
        <array>
            <dict>
                <key>UISceneConfigurationName</key>
                <string>Default Configuration</string>
                <key>UISceneDelegateClassName</key>
                <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
            </dict>
        </array>
    </dict>
</dict>

What each part does:

  • UIApplicationSupportsMultipleScenes set to false keeps one window, which is all the requirement asks for.
  • UIWindowSceneSessionRoleApplication is the role for an ordinary interactive window.
  • UISceneDelegateClassName tells UIKit which class to create as the scene delegate. $(PRODUCT_MODULE_NAME). is needed for a Swift class.
  • If your first screen comes from a storyboard, add UISceneStoryboardFile with its name (for example Main) and UIKit builds the window for you. If you build the first screen in code, leave it out and create the window yourself, as in step 3.

Step 3: create the scene delegate and move the window

Add a new Swift file, SceneDelegate.swift. The window that the app delegate used to create now belongs to the scene:

import UIKit

class SceneDelegate: UIResponder, UIWindowSceneDelegate {
    var window: UIWindow?

    func scene(_ scene: UIScene, willConnectTo session: UISceneSession,
               options connectionOptions: UIScene.ConnectionOptions) {
        guard let windowScene = scene as? UIWindowScene else { return }
        window = UIWindow(windowScene: windowScene)
        window?.rootViewController = HomeViewController()
        window?.makeKeyAndVisible()

        // A URL that launched the app arrives here, not in scene(_:openURLContexts:).
        if let url = connectionOptions.urlContexts.first?.url {
            Router.shared.handle(url)
        }
    }

    func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
        // A URL opened while the app is already running.
        if let url = URLContexts.first?.url {
            Router.shared.handle(url)
        }
    }

    func sceneDidEnterBackground(_ scene: UIScene) {
        Store.shared.save()
    }
}

Then remove the window code from AppDelegate. Its application(_:didFinishLaunchingWithOptions:) should keep only process-wide setup and return true. Note the UIWindow(windowScene:) initializer: a window must now be attached to a scene, so UIWindow(frame: UIScreen.main.bounds) is no longer the right way to create the main window.

Step 4: move every callback that UIKit will stop calling

This is where migrations break quietly. Apple’s guide warns: “Once your app adopts the scene-based life cycle, UIKit no longer calls these UIApplicationDelegate methods, even if you keep them implemented.” Transitioning to the UIKit scene-based life cycle The compiler will not complain, because the methods still exist.

Old app delegate method Scene replacement
applicationDidBecomeActive(_:) sceneDidBecomeActive(_:)
applicationWillResignActive(_:) sceneWillResignActive(_:)
applicationDidEnterBackground(_:) sceneDidEnterBackground(_:)
applicationWillEnterForeground(_:) sceneWillEnterForeground(_:)
application(_:open:options:) scene(_:openURLContexts:), plus connectionOptions.urlContexts at launch
application(_:continue:restorationHandler:) scene(_:continue:), plus connectionOptions.userActivities at launch
application(_:performActionFor:completionHandler:) windowScene(_:performActionFor:completionHandler:), plus connectionOptions.shortcutItem at launch

The first four rows come from Apple’s migration table. The last three come from the deprecation notes on each app delegate method, which since iOS 26 say, for example, “Use UIScene lifecycle and scene(_:openURLContexts:) from UISceneDelegate instead.” application(_:open:options:) The “at launch” part matters: when a deep link, a Universal Link or a Home Screen quick action starts the app from scratch, the data arrives in the UIScene.ConnectionOptions passed to scene(_:willConnectTo:options:), not in the “already running” callback. scene(_:willConnectTo:options:)

If some code needs the state of the whole app (“is any window in the foreground?”), Apple suggests listening to the app-level notifications, such as UIApplication.willEnterForegroundNotification, instead of one scene’s callback.

Step 5: stop assuming one window

Code like UIApplication.shared.keyWindow or UIApplication.shared.windows.first assumes the app has exactly one window. keyWindow has been deprecated since iOS 13 with the note “Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes.” UIApplication.keyWindow Also, any window property you kept on AppDelegate is no longer set by UIKit, so (UIApplication.shared.delegate as? AppDelegate)?.window becomes nil.

The fix is to reach the window through something you already hold. Inside a view controller, use view.window or view.window?.windowScene. For a helper, pass the view in:

func showToast(_ text: String, in view: UIView) {
    view.window?.rootViewController?.view.addSubview(ToastView(text: text))
}

After these changes the audit script reported, for the same test project:

OK    Migrated/Legacy/Info.plist: scene manifest with roles ['UIWindowSceneSessionRoleApplication']
RESULT scene life cycle adopted

The Swift snippets here were written for this article and run through the audit script, not compiled: the test machine had no Xcode. Build them in your own project before relying on them.

Flutter and other cross-platform apps

A Flutter app is a UIKit app on iOS, so the same rule applies. Flutter’s migration page says that from Flutter 3.41, projects with an unmodified AppDelegate are migrated automatically when you run flutter run or flutter build ios, and the tool prints Finished migration to UIScene lifecycle. A customized AppDelegate, an add-to-app setup, or a plugin needs the manual steps on that page. It also notes that after migration the launch options are nil, so launch-time logic belongs in the scene callback. Flutter: UIScene adoption If you are also moving Flutter or native iOS dependencies off CocoaPods, see finding which pods to move to SwiftPM; doing both in the same release makes it harder to tell which change caused a regression.

Common mistakes

  • Leaving lifecycle code in the app delegate. It compiles, it never runs. Saving on background is the classic victim: data silently stops being saved.
  • Handling deep links only in scene(_:openURLContexts:). Cold launches from a link then do nothing. Read connectionOptions too.
  • Forgetting the module prefix. UISceneDelegateClassName set to SceneDelegate instead of $(PRODUCT_MODULE_NAME).SceneDelegate means UIKit cannot find a Swift class, and you get a black screen.
  • Turning on multiple scenes by accident. Setting UIApplicationSupportsMultipleScenes to true on iPad lets users open two copies of a screen that may share state badly. Leave it false unless you designed for it.
  • Testing only on iPhone. Apple recommends testing on iPad in Full Screen, windowed mode and Stage Manager after migrating.

How to verify

  1. Build with Xcode 27 and run on an iOS 27 simulator; the app should launch. Also run it on an iOS 26 simulator and confirm the UIScene lifecycle warnings quoted above no longer appear in the console.
  2. Put the app in the background and bring it back. Confirm with a breakpoint or a log line that sceneDidEnterBackground(_:) and sceneWillEnterForeground(_:) run, and that whatever your old app delegate methods did (saving, refreshing, pausing timers) still happens.
  3. Quit the app, then open a deep link (for example with xcrun simctl openurl booted myapp://item/42; the scheme must be registered under CFBundleURLTypes). This tests the cold-launch path through connectionOptions. To stop at a breakpoint during a cold launch, set Wait for the executable to be launched in the scheme’s Run options. Open another link while the app is running to test scene(_:openURLContexts:).
  4. If you use quick actions, Universal Links or Handoff, test each from a cold start as well.
  5. Run python3 scene_audit.py again and review any remaining CHECK lines.

Conclusion

The scene requirement is not about supporting multiple windows; it is a configuration and plumbing change that every UIKit app must make before it is built with the iOS 27 SDK, which App Store uploads will require from April 2027. Check your project with the two conditions Apple lists, add a scene manifest and a SceneDelegate, then move every app delegate callback that UIKit will stop calling, especially background saves and cold-launch deep links. Do it now, on its own release, so a launch problem shows up in your testing rather than in your users’ hands.

Written by Duy Pham Independent developer. I build the apps on this site and write about how they work.

More about me