Repository navigation
Avoid iOS run-loop nesting when the launcher releases the GIL - #847
Merged
Merged
Conversation
3 tasks done
freakboy3742
approved these changes
Nov 6, 2026
freakboy3742
left a comment
Member
There was a problem hiding this comment.
As noted on the template, I think this can be significantly simplified if we make the next release 0.6.0, and add a release note in the next Toga release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make
iOSLifecycle()automatically avoid nesting when the native launcher setssys._ios_app_main_releases_giltoTrue. Older launchers retain nesting; explicit overrides remain available. Refs #846.The complete fix requires this PR and beeware/briefcase-iOS-Xcode-template#91. Either component can be upgraded independently; only updating both disables nesting. Existing Toga and application code work unchanged. Generated native launchers must be updated and rebuilt.
All four old/new Rubicon and launcher combinations passed simulator checks for nesting and prompt worker callbacks, as did a smoke test with unmodified Toga 0.5.7. macOS Python 3.11–3.15, the full iOS suite, docs, pre-commit, and Towncrier checks pass. Physical iPad trackpad validation remains outstanding.
PR Checklist:
Assisted-by: OpenAI Codex