Skip to content

fix: build on current toolchains (iOS 27, Flutter 3.47) - #34

Merged
hiroshihorie merged 1 commit into
mainfrom
hiroshi/fix-builds
Aug 26, 2026
Merged

fix: build on current toolchains (iOS 27, Flutter 3.47)#34
hiroshihorie merged 1 commit into
mainfrom
hiroshi/fix-builds

Conversation

@hiroshihorie

Copy link
Copy Markdown
Contributor

iOS 27 terminates apps that haven't adopted the UIScene lifecycle, and Flutter 3.47 enforces AGP/Kotlin minimums this project was below — so the Android build failed outright and the iOS app wouldn't launch.

Changes

iOS — UIScene

  • UIApplicationSceneManifest in Info.plist, using the stock FlutterSceneDelegate (no custom scene delegate needed)
  • AppDelegate conforms to FlutterImplicitEngineDelegate, registering plugins in didInitializeImplicitFlutterEngine. Under UIScene the app delegate's window is nil, so registration can't stay in didFinishLaunchingWithOptions.

Flutter's auto-migrator doesn't fire here — the AppDelegate doesn't match any of its templates.

Android — Flutter 3.47 minimums

  • AGP 8.10.18.11.1, Kotlin 2.1.02.2.20
  • Gradle 8.11.18.14 (AGP 8.11 requires ≥ 8.13)
  • ndkVersionflutter.ndkVersion, Java target → 17

iOS/macOS — Podfiles

  • Drop use_modular_headers! (not in any Flutter template)
  • Platforms → iOS 15.0, macOS 12.0

Verified

platform
Android APK builds
iOS builds; launches on the iOS 27 simulator
macOS builds and runs
web builds and runs in Chrome

Draft — worth a look at whether the platform floors match what this starter wants to support.

iOS 27 terminates apps that have not adopted the UIScene lifecycle, and
Flutter 3.47 enforces AGP/Kotlin minimums this project was below, so the
Android build failed outright.

- iOS: adopt UIScene (UIApplicationSceneManifest + FlutterImplicitEngineDelegate)
- iOS/macOS: drop use_modular_headers!, raise platforms to 15.0 / 12.0
- Android: AGP 8.10.1 -> 8.11.1, Kotlin 2.1.0 -> 2.2.20, Gradle 8.11.1 -> 8.14
  (AGP 8.11 requires Gradle >= 8.13)
- Android: use flutter.ndkVersion, Java 17

Verified: Android APK, iOS simulator and macOS all build; app launches on
the iOS 27 simulator.
@hiroshihorie
hiroshihorie marked this pull request as ready for review August 26, 2026 22:56
@hiroshihorie
hiroshihorie merged commit 9e757ec into main Aug 26, 2026
3 checks passed
@hiroshihorie
hiroshihorie deleted the hiroshi/fix-builds branch August 26, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant