Skip to content

Add iOS 27 scene lifecycle support - #2492

Open
htenlik wants to merge 3 commits into
LoopKit:devfrom
htenlik:fix/ios-27-support
Open

Add iOS 27 scene lifecycle support#2492
htenlik wants to merge 3 commits into
LoopKit:devfrom
htenlik:fix/ios-27-support

Conversation

@htenlik

@htenlik htenlik commented Aug 12, 2026

Copy link
Copy Markdown

Problem

When Loop is built with the iOS 27 SDK, the app builds successfully but fails at launch because UIKit now requires adoption of the scene-based lifecycle:

Application failed to launch: UIScene life cycle is required for apps built with this SDK.

Xcode 27 also exposes an initialization-order issue in FavoriteFoodDetailView.

Changes

  • Add SceneDelegate and register it through UIApplicationSceneManifest.
  • Move LoopAppManager launch and active-state handling from AppDelegate to the scene lifecycle.
  • Preserve the existing storyboard and root navigation architecture.
  • Fix FavoriteFoodDetailView stored-property initialization order for Xcode 27.

Testing

Tested with:

  • macOS 26.5.2
  • Xcode 27 beta 5
  • iOS 27
  • iPhone 16 Plus

The patched build installs and launches successfully. I exercised normal application navigation and usage without observing launch crashes or regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant