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

オープン
#213 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #214 @avijit213 による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, objective-c, typescript
領域
mobile-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
16.4k
フォーク
538
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Snapchat/Valdi のほかの issue

Snapchat/Valdi の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。