Skip to content

[iOS] Add UIScene lifecycle events.#116395

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
bruvzg:ios_sc
Feb 20, 2026
Merged

[iOS] Add UIScene lifecycle events.#116395
akien-mga merged 1 commit into
godotengine:masterfrom
bruvzg:ios_sc

Conversation

@bruvzg

@bruvzg bruvzg commented Feb 17, 2026

Copy link
Copy Markdown
Member

Fixes #115936

@stuartcarnie stuartcarnie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this works.

I would recommend we remove the onChange handler in app.swift, given the lifecycle events are being called again, which also start / stop rendering and audio, and are now superfluous.

@rsanchezsaez may be able to offer additional comments on removing onChange.

@akien-mga akien-mga added cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release regression labels Feb 17, 2026
@akien-mga akien-mga modified the milestones: 4.x, 4.7 Feb 17, 2026

@stuartcarnie stuartcarnie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@akien-mga akien-mga merged commit db77a46 into godotengine:master Feb 20, 2026
20 checks passed
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

@Repiteo

Repiteo commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Cherry-picked for 4.6.2.

@Repiteo Repiteo removed the cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release label Feb 20, 2026
stuartcarnie added a commit to stuartcarnie/godot that referenced this pull request Feb 21, 2026
@jupitersecho

Copy link
Copy Markdown

Hey all,

I needed to stay on Godot 4.5.1, so I backported the iOS UIScene fix from PR #116395 and built patched iOS custom export templates. I wanted to share in case anyone else finds useful.

Repo: https://github.com/JupitersEchoDesigns/godot-4.5.1-ios-uiscene-fix

Release/templates: https://github.com/JupitersEchoDesigns/godot-4.5.1-ios-uiscene-fix/releases/tag/v4.5.1-ios-uiscene-fix-1

This fixed the "UIScene lifecycle will soon be required. Failure to adopt will result in an assert in the future." warning for me on 4.5.1.

Usage is simple. Go into your iOS export, and set the debug and release to point at the patched godot_ios zip. If you wish to revert, just remove the links.

This is not an official Godot release, just a focused 4.5.1 backport for anyone else blocked on the same issue.

Thanks,
Jupiter's Echo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment