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
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-authstill referencesappDelegate.window.rootViewController.view.windowhere:react-native-app-auth/packages/react-native-app-auth/ios/RNAppAuth.m
Line 377 in 9a325ae
How to reproduce?
Build with Xcode 27 and launch the app on e.g. an iOS simulator. Trigger
authorizeWithConfigurationand watch the app crash.Environment