Repository navigation
Document UIKit scene lifecycle migration for iOS and Mac Catalyst (SDK 27) - #3594
Conversation
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>
|
Learn Build status updates of commit 9ee24b5: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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. |
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit a931021: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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. |
There was a problem hiding this comment.
🟡 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
MT7198 collided with a newly added codesign diagnostic in macios. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 2a002cc: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit dd42a7d: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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
left a comment
There was a problem hiding this comment.
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.PerformActionForShortcutItemoverride needs to move to aConfigureLifecycleEventsregistration. MAUI 10.0.110 already forwards warm and cold scene shortcuts, so don't add duplicatePlatform.PerformActionForShortcutItemforwarding. 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.
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 status updates of commit 4dcfaa0: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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. |
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe 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 foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 117fdcc: 💡 Validation status: suggestions
docs/ios/uikit-scene-lifecycle.md
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. |

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:
Platforms/iOSandPlatforms/MacCatalyst(SceneDelegate+UIApplicationSceneManifest).Scene*equivalents), cold-start links, auth redirects and app actions.ValidateSceneManifestopt-out.maui-xcode27-migrationskill, 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
Build report