Skip to content

Only compile the iOS app delegate for Qt 5 - #341

Closed
ann0see wants to merge 1 commit into
mainfrom
ios/fix-qt6-app-delegate
Closed

ann0see wants to merge 1 commit into
mainfrom
ios/fix-qt6-app-delegate

Conversation

@ann0see

@ann0see ann0see commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Short description of changes

Only compile src/ios/ios_app_delegate.mm for Qt 5.

That file defines a second QIOSApplicationDelegate. Qt 6 ships its own implementation, which provides the UIScene lifecycle adoption required since iOS 26; the duplicate implementation shadows those methods and the app aborts on launch with:

Application failed to launch: UIScene life cycle is required for apps built with this SDK.

followed by SIGTRAP inside -[UIApplication workspace:didCreateScene:withTransitionContext:completion:].

For Qt 5 the file is still compiled, unchanged.

CHANGELOG: iOS: Fixed the app aborting on launch when built with Qt 6.

Context: Fixes an issue?

Relates to jamulussoftware#3406 (Qt 6 iOS compatibility). No issue for the abort itself.

Does this change need documentation? What needs to be documented and how?

No.

Status of this Pull Request

Working implementation, verified locally.

What is missing until this pull request can be merged?

  • Verification on a physical iOS device with Qt 6 — only simulators were tested (Xcode 27 / iOS 27.2). The behaviour is platform-plugin level, so it should not differ, but it is untested.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

AUTOBUILD: Please build all targets

🤖 Used AI: DeepSeek V4.1 Flash, OpenCode

Summary by CodeRabbit

  • Bug Fixes
    • Improved iOS build compatibility across Qt versions. Builds now use the appropriate platform integration for the Qt version in use. This helps ensure the app builds correctly on supported configurations without changing its features or behavior.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

For iOS builds, Jamulus.pro now includes the custom application delegate source and header only when the Qt major version is below 6.

Changes: iOS application delegate

Layer / File(s) Summary
Conditionally include the iOS delegate files
Jamulus.pro
The iOS project includes ios_app_delegate.mm and its header only for Qt versions below 6.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • ann0see/jamulus#340: Adds Qt 6 iOS Simulator build tooling and notes the need for a Jamulus-side change to avoid a Qt 6 launch abort.

Suggested reviewers: pljones

Merge Risk: Minimal · up to 71500

The change leaves Qt 5 behavior intact and allows Qt 6 to use its own iOS delegate. No merge-blocking risk was established.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly states the main change: the iOS app delegate is compiled only for Qt 5.
Description check Passed The description covers the change, reason, changelog entry, issue context, documentation needs, status, remaining testing, and checklist. It also identifies that physical-device testing and completion…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the change, reason, changelog entry, issue context, documentation needs, status, remaining testing, and checklist. It also identifies that physical-device testing and completion of GitHub checks remain outstanding.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b253e224-c383-43c8-aa57-9d4971d5d5cd
Commits

Reviewing files that changed from the base of the PR and between 19c50e5 and 715000e.

Files selected for processing: 1

  • Jamulus.pro

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

src/ios/ios_app_delegate.mm defines a second QIOSApplicationDelegate which
shadows Qt 6's own implementation. Qt 6 provides the UIScene lifecycle
adoption required since iOS 26; with the duplicate implementation the app
aborts on launch with:

    Application failed to launch: UIScene life cycle is required for apps
    built with this SDK

(QTBUG/SIGTRAP from -[UIApplication workspace:didCreateScene:...]).
@ann0see
ann0see force-pushed the ios/fix-qt6-app-delegate branch from 4baa1c9 to 715000e Compare November 9, 2026 21:00
@ann0see ann0see closed this Nov 9, 2026
@ann0see

ann0see commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

Raised to upstream

@ann0see
ann0see deleted the ios/fix-qt6-app-delegate branch November 20, 2026 17:58
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