iOS: proper UIScene lifecycle support needs libGDX 1.14.3 (replaces SDK 26.0 workaround)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 38/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- backend, mobile-dev
调研方向
Start by checking libGDX 1.14.3's release status and the version pins in forge-gui-mobile, forge-gui-android, forge-gui-mobile-dev, and forge-gui-ios/pom.xml. Then inspect forge-gui-ios/pipeline/ios-pipeline.sh for the hard-coded jar paths and SDK 26.0 stamps. Done means the released versions are aligned, the workaround is removed, and iOS lifecycle behavior plus Android and desktop builds have been checked; this is planned work awaiting a release and maintainer agreement.
由索引模型根据 Issue 内容生成。
描述
Background
iOS 27 refuses to launch apps built with the latest SDK unless they adopt the UIKit scene-based life cycle. Without it, the app crashes at launch in _UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption. Apple's guidance: TN3187.
Forge's iOS app starts through libGDX's RoboVM backend (forge.ios.Main extends IOSApplication.Delegate), which in libGDX 1.14.2 still uses the legacy app-delegate life cycle.
#12132 worked around this by stamping the binary with SDK 26.0 (vtool -set-build-version … 26.0) in ios-pipeline.sh, for both simulator and device builds. That works on iOS 27 today (verified on an iPad Pro 13-inch M5), but it's a stopgap:
- Apple could start enforcing the requirement regardless of the recorded SDK version.
- It relies on rewriting the binary after the build.
Proposed fix: upgrade libGDX to 1.14.3 when it's released
libGDX has already done this work. The [1.14.3] section of its CHANGES lists:
[BREAKING CHANGE] iOS: Migrated to UIKit scene-based life cycle.(libgdx/libgdx#7823)[BREAKING CHANGE] iOS: Increased min supported iOS version to 13.0.iOS: Update to MobiVM 2.3.26
1.14.3 is not released yet (latest is 1.14.2, June 2026); it's only available as 1.14.3-SNAPSHOT.
From reading libGDX master, the impact on Forge looks small:
IOSApplication.DelegateandcreateApplication()still exist; the window is now created when the scene connects instead of indidFinishLaunching.- libGDX provides its own scene delegate through the app delegate's scene configuration, so Forge probably doesn't need an
Info.plistscene manifest (not yet verified). forge.ios.Mainonly overridescreateApplication()anddidReceiveMemoryWarning(), so there's little Forge-specific code to adapt.
What the upgrade would touch
- libGDX
1.14.2→1.14.3in all modules that pin it, not just iOS:forge-gui-mobile,forge-gui-android,forge-gui-mobile-devandforge-gui-ios, since the core and backend versions should match. This is the part that needs maintainer agreement. - RoboVM (MobiVM)
2.3.24→2.3.26+ inforge-gui-ios/pom.xml(required by libGDX 1.14.3). - Hard-coded
1.14.2/2.3.24jar paths inforge-gui-ios/pipeline/ios-pipeline.sh. - Removing both SDK 26.0
vtoolstamps. - Testing on iOS: launch, background/foreground, rotation, keyboard, clipboard paste. Plus a sanity check on Android and desktop.
Plan
- Now: I will test later this week
1.14.3-SNAPSHOT+ MobiVM 2.3.26 on a local branch to confirm Forge runs with scenes, and report anything broken back to libGDX. Not intended for merging. - When libGDX 1.14.3 is released: open a PR with the version bumps and the workaround removed.
- Until then: the SDK 26.0 stamp keeps iOS 27 builds working.
Questions for maintainers
- Is bumping libGDX to 1.14.3 across Android and desktop acceptable once it's released?
- @shoeless, are you already working on UIScene for the iOS port, or planning to? I'd like to avoid duplicating effort.
Related: #12132
- 主要语言
- Java
- 星标
- 2.7k
- 派生
- 1.1k
- 平均合并
- 20 小时 38 分钟
- 30 天内合并 PR
- 323
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Card-Forge/forge 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
Card-Forge/forge#13128 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Card-Forge/forge#13092 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
Card-Forge/forge#12877 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Card-Forge/forge#12710 ·
维护者通常 1 天内回复
-
Shandalar "The Drunken Plea" quest completes prematurely可能重新可做 @Simisays 于 35 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
Card-Forge/forge#12306 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
area: context help wanted type: decision
难度 2/5 1-3 小时 新手友好度 70/100
JoaccoG/spoticraft#6 ·
-
CI: LFC/ANTLR caches still use the old lfc/ paths, so the ANTLR jar is downloaded on every run可能已有人在做 @NicoBiernat 今天认领。 未关闭bug CI
难度 2/5 1-3 小时 新手友好度 84/100
lf-lang/reactor-uc#443 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
ChiselsAndBits/Chisels-and-Bits#1397 ·