iOS apps built with the Xcode 27 SDK fail to launch: bootstrap app delegate has no UIScene
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #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
valdi bootstrap -t ui_application(defaultbeta-0.2.1, also reproduces onmainat bc20bfc)- Build the iOS app with Xcode 27.2 and install it on an iOS 27.2 simulator (
valdi install ios, orbazel build //apps/helloworld:hello_world_iosin this repo) - 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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Snapchat/Valdi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 55/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 50/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
-
triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
patrick-hudson/put.gd-desktop#2044 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
uxlfoundation/oneDNN#6604 · 1 条评论 ·
维护者通常 2 天内回复