iOS: proper UIScene lifecycle support needs libGDX 1.14.3 (replaces SDK 26.0 workaround)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, ios, java

調査の方向性

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 の本文から書いたものです。

説明

Dependencies iOS

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.Delegate and createApplication() still exist; the window is now created when the scene connects instead of in didFinishLaunching.
  • libGDX provides its own scene delegate through the app delegate's scene configuration, so Forge probably doesn't need an Info.plist scene manifest (not yet verified).
  • forge.ios.Main only overrides createApplication() and didReceiveMemoryWarning(), so there's little Forge-specific code to adapt.

What the upgrade would touch

  1. libGDX 1.14.2 → 1.14.3 in all modules that pin it, not just iOS: forge-gui-mobile, forge-gui-android, forge-gui-mobile-dev and forge-gui-ios, since the core and backend versions should match. This is the part that needs maintainer agreement.
  2. RoboVM (MobiVM) 2.3.24 → 2.3.26+ in forge-gui-ios/pom.xml (required by libGDX 1.14.3).
  3. Hard-coded 1.14.2 / 2.3.24 jar paths in forge-gui-ios/pipeline/ios-pipeline.sh.
  4. Removing both SDK 26.0 vtool stamps.
  5. 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分
マージ済み PR(30日)
323

環境構築

はじめの一歩

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

Card-Forge/forge のほかの issue

Card-Forge/forge の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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