Skip to content

iOS 27 scene-based life cycle support #1147

Description

@jenskuhrjorgensen

Issue

Starting from Xcode 27, it is required to transition to scene-based life cycle methods in order to build with iOS 27.

Currently, the app crashes because react-native-app-auth still references appDelegate.window.rootViewController.view.window here:

UIViewController *presentingViewController = appDelegate.window.rootViewController.view.window ? appDelegate.window.rootViewController : appDelegate.window.rootViewController.presentedViewController;

How to reproduce?
Build with Xcode 27 and launch the app on e.g. an iOS simulator. Trigger authorizeWithConfiguration and watch the app crash.


Environment

  • "react-native": "0.86.3"
  • Not using Expo
  • "react-native-app-auth": "8.0.3"
  • iOS only

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions