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

Đang mở
#213 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #214 của @avijit213 — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, objective-c, typescript
Lĩnh vực
mobile-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
16.4k
Fork
538
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Snapchat/Valdi

Tất cả issue của Snapchat/Valdi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.