Skip to content

Document UIKit scene lifecycle migration for iOS and Mac Catalyst (SDK 27) - #3594

Merged
jfversluis merged 7 commits into
dotnet:mainfrom
rolfbjarne:uiscene-migration
Oct 27, 2026
Merged

jfversluis merged 7 commits into
dotnet:mainfrom
rolfbjarne:uiscene-migration

Conversation

@rolfbjarne

@rolfbjarne rolfbjarne commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Apps built with the iOS / Mac Catalyst 27 SDK (Xcode 27) must use the UIKit scene lifecycle, otherwise they crash at launch on iOS / Mac Catalyst 27. This adds a migration guide at docs/ios/uikit-scene-lifecycle.md (listed in the TOC after "Apple privacy manifest").

The page covers:

  • The two-file fix for Platforms/iOS and Platforms/MacCatalyst (SceneDelegate + UIApplicationSceneManifest).
  • The SDK build requirement versus the minimum deployment OS.
  • Preserving custom scene configuration, lifecycle events (Scene* equivalents), cold-start links, auth redirects and app actions.
  • The macios build-time check (MT7199) and the ValidateSceneManifest opt-out.
  • Concrete steps for AI agents, the experimental maui-xcode27-migration skill, and a test checklist.

This is intended as the target of aka.ms/uiscene, which currently redirects to https://github.com/dotnet/macios and needs retargeting to https://learn.microsoft.com/dotnet/maui/ios/uikit-scene-lifecycle once published.

Sources:

🤖 Pull request created by Copilot


Internal previews

File Preview link
docs/ios/uikit-scene-lifecycle.md Learn preview
docs/TOC.yml Learn preview

Build report

rolfbjarne and others added 2 commits October 20, 2026 18:13
Add an iOS and Mac Catalyst migration guide with the matching registered MauiUISceneDelegate and scene manifest configuration. Explain the SDK-based launch requirement separately from deployment targets, and cover existing custom configurations, scene lifecycle callbacks, cold-start links, authentication and app actions.

Document MT7198, the ValidateSceneManifest opt-out and the limits of manifest-only validation. Include concrete guidance for AI agents and a migration verification checklist, and make the page discoverable from the iOS table of contents.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mention the device log message users see when the scene lifecycle is
missing, and link to the blog post describing the experimental
maui-xcode27-migration agent skill.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@rolfbjarne
rolfbjarne requested a review from a team as a code owner October 20, 2026 16:22
Copilot AI balanced review requested due to automatic review settings October 20, 2026 16:22
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 9ee24b5:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit a931021:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Copilot AI 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.

🟡 Changes recommended

The lifecycle example doesn't compile, and the dynamic-configuration guidance can leave apps using legacy startup.

3 open issues
What changed in this PR

Adds a .NET MAUI migration guide for the UIKit scene lifecycle required by the iOS and Mac Catalyst 27 SDKs.

Changes:

  • Documents scene setup, lifecycle migration, validation, and testing.
  • Provides AI-assisted migration guidance.
  • Adds the guide to iOS navigation.
File Description
docs/​TOC.yml Adds the migration guide navigation entry.
docs/​ios/​uikit-scene-lifecycle.md Introduces migration instructions and verification steps.

Review effort: Balanced

Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
MT7198 collided with a newly added codesign diagnostic in macios.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 2a002cc:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Add ai-usage front matter, return a bool from the SceneOpenUrl sample,
and require an (at least empty) UIApplicationSceneManifest for dynamic
scene configuration.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit dd42a7d:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@jfversluis jfversluis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I put together an alternative treatment in draft #3597, just for comparison, not as a competing page to merge alongside this one. Here's the comparison article. I prefer your shorter quick-fix structure and your explicit explanation of why dynamic configuration still needs a manifest dictionary. The inline suggestions below bring across a few small safeguards and keep the agent material optional.

Two larger points to consider separately:

  • Custom App Actions: a migrated AppDelegate.PerformActionForShortcutItem override needs to move to a ConfigureLifecycleEvents registration. MAUI 10.0.110 already forwards warm and cold scene shortcuts, so don't add duplicate Platform.PerformActionForShortcutItem forwarding. Each custom registration, including a logging-only observer, must call its completion callback exactly once. The comparison article has a short section on this and links to the existing App Actions details. This is worth covering beyond the test checklist, because an app can launch successfully while shortcuts stop working.
  • Navigation and existing docs: add an entry under Mac Catalyst as well as iOS, and make the existing lifecycle/App Actions scene sections available to .NET 10 readers (they're currently restricted to .NET 11). The comparison draft includes those related changes.

One diagnostic detail: the article correctly says MT7199 now, but the PR description still says MT7198. Earlier scene-validation drafts used MT7198; that code is now used for the extended-attributes signing error. It would help readers searching for the original number to distinguish the two messages briefly. Also, the main validation PR and .NET 10 backport are still open, so the build-check wording shouldn't imply that every released SDK 27 workload includes it.

I'd keep this PR as the main delivery vehicle and borrow whichever pieces are useful. No need to adopt the longer draft wholesale. The comparison's snippets were compiled against the released MAUI and Apple reference assemblies; neither version has been runtime-verified on an Apple host as part of this comparison.

Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Comment thread docs/ios/uikit-scene-lifecycle.md Resolved
Move the package requirement ahead of the quick fix, cover window timing
and App Actions, qualify the build check by workload availability, note
the MT7198 vs MT7199 change, make the AI skill an optional note, and add
a Mac Catalyst TOC entry.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 4dcfaa0:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 117fdcc:

💡 Validation status: suggestions

File Status Preview URL Details
docs/ios/uikit-scene-lifecycle.md 💡Suggestion View (>=net-maui-8.0) Details
docs/TOC.yml ✅Succeeded View (>=net-maui-8.0)

docs/ios/uikit-scene-lifecycle.md

  • Line 0, Column 0: [Suggestion: filename-incomplete - See documentation] The filename contains an incomplete word, misspelled word, acronym, or abbreviation that is disallowed.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

@jfversluis
jfversluis merged commit 86b7e33 into dotnet:main Oct 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants