iOS apps built with the Xcode 27 SDK fail to launch: bootstrap app delegate has no UIScene

Aperta
#213 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #214 di @avijit213 — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, objective-c, typescript
Ambito
mobile-dev

Direzione di ricerca

Start with SCValdiBootstrappingAppDelegate, which creates its window in application:didFinishLaunchingWithOptions:, and with the generated Info.plist template at bzl/valdi/app_templates/Info.plist.tpl, which lacks a UIApplicationSceneManifest. Reproduce by bootstrapping a ui_application and building apps/helloworld for iOS on an Xcode 27 simulator. Done when the app launches under the scene life cycle; PR #214 already attempts this, so review it rather than starting fresh.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Valdi iOS apps built with the Xcode 27 / iOS 27 SDK are killed at launch, before any Valdi code runs. UIKit now requires the UIScene life cycle. SCValdiBootstrappingAppDelegate creates its window in application:didFinishLaunchingWithOptions:, and the generated Info.plist (bzl/valdi/app_templates/Info.plist.tpl) declares no UIApplicationSceneManifest.

Steps to reproduce
  1. valdi bootstrap -t ui_application (default beta-0.2.1, also reproduces on main at bc20bfc)
  2. Build the iOS app with Xcode 27.2 and install it on an iOS 27.2 simulator (valdi install ios, or bazel build //apps/helloworld:hello_world_ios in this repo)
  3. The app icon appears, but the app exits right away
Expected behavior

The app launches and shows the root component.

Actual behavior

The process exits during launch. Device log:

(UIKitCore) failure in void _UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption(void)_block_invoke
(UIApplication_RuntimeIssues.m:106) : Application failed to launch: UIScene life cycle is required for apps
built with this SDK. See "Transitioning to the UIKit scene-based life cycle" in the UIKit documentation for
more information on migration.
Valdi version

beta-0.2.1, and main @ bc20bfc

Affected target platforms

iOS

Development machine

macOS 27, Apple Silicon, Xcode 27.2 (27B52)

Device and OS version

iPhone 17 simulator, iOS 27.2 (24B8117)

Additional context

Workaround: a host main.m with an app delegate plus a UIWindowSceneDelegate that builds the same SCValdiDefaultContainerViewController / UINavigationController inside the connecting UIWindowScene, and an Info.plist with a scene manifest. With that, the same module renders normally. A PR follows that does this inside SCValdiBootstrappingAppDelegate, gated on the app's Info.plist so apps without a scene manifest keep today's behavior.

Lingua principale
C++
Stelle
16.4k
Fork
538
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Snapchat/Valdi

Tutte le issue di Snapchat/Valdi

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.