Repository navigation
[iOS/MacCatalyst] Map bicycling navigation to cycling directions - #37942
Conversation
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Description Updates the pinned `@microsoft/vally-cli` version used by skill validation and live soak workflows from 0.12.0 to the latest stable release, 0.14.0. Also updates direct lint command examples and makes eval-spec comments version-neutral where the described scoring behavior remains unchanged. ## Validation - Installed Vally 0.14.0 through `.github/scripts/SetupVallyRuntime.sh` - Strict-linted all 16 Vally evaluation specifications with Vally 0.14.0 Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9e73594e-38bc-4937-80c8-cc054aa890d2
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37942Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37942" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: 2
New issues introduced by this change (2)
| Severity | Finding |
|---|---|
src/Essentials/src/Map/Map.ios.watchos.macos.cs — GetDirectionsMode is compiled for both iOS and MacCatalyst (this file matches *.ios.*.cs), but… |
|
src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs — This test always expects MKDirectionsMode.Cycling, but the implementation intentionally returns… |
What changed in this PR
This PR updates the iOS Map directions-mode mapping so NavigationMode.Bicycling launches Apple Maps using MapKit’s cycling directions (MKDirectionsMode.Cycling) on iOS 14+, with a fallback to MKDirectionsMode.Default on older OS versions.
Changes:
- Refactors the iOS MapKit launch-options mapping into
MapImplementation.GetDirectionsMode(...)and adds the bicycling→cycling mapping for iOS 14+. - Adds an iOS-only device test that validates the bicycling directions-mode mapping.
| File | Description |
|---|---|
| src/Essentials/src/Map/Map.ios.watchos.macos.cs | Introduces GetDirectionsMode and maps bicycling to cycling (iOS 14+), using it when constructing MKLaunchOptions. |
| src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs | Adds a device test asserting the bicycling navigation mode maps to cycling directions. |
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 3 findings
See inline comments for details.
kubaflo
left a comment
There was a problem hiding this comment.
Could you check the ai's suggestions?
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1f63ff07-fc13-4899-b01e-ff1829d98bb0
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 1 findings
See inline comments for details.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@jfversluis — new AI review results are available based on commit
8d1313d.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ INCONCLUSIVE
Platform: IOS · Base: main · Merge base: 1b88601b
🩺 Could not verify — environment/infrastructure error. The gate ran the tests but hit an environment error (an emulator/simulator/Appium/XHarness flake, a device that would not boot, or an empty/invalid result file), so it could not record a real pass/fail. The /review to retry on a fresh agent.
XHarness did not produce the expected fresh result 'testResults.xml' for requested class(es) 'Microsoft.Maui.Essentials.DeviceTests.Maps_Tests' (the target tests did not run).
| Test | Without Fix (expect FAIL) | With Fix (expect PASS) |
|---|---|---|
📱 Maps_Tests (NavigationModeUsesExpectedDirectionsMode, BicyclingNavigationModeUsesCyclingDirections, BicyclingNavigationModeFallsBackWhenCyclingIsUnavailable) Category=Maps |
🛠️ BUILD ERROR |
🔴 Without fix — 📱 Maps_Tests (NavigationModeUsesExpectedDirectionsMode, BicyclingNavigationModeUsesCyclingDirections, BicyclingNavigationModeFallsBackWhenCyclingIsUnavailable): 🛠️ BUILD ERROR · 32s
Error-relevant lines (filtered from the build log):
/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs(49,45): error CS0117: 'MapImplementation' does not contain a definition for 'GetDirectionsMode' [/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Essentials.DeviceTests.csproj::TargetFramework=net10.0-ios]
/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs(53,61): error CS0117: 'MapImplementation' does not contain a definition for 'GetDirectionsMode' [/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Essentials.DeviceTests.csproj::TargetFramework=net10.0-ios]
/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs(57,61): error CS0117: 'MapImplementation' does not contain a definition for 'GetDirectionsMode' [/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Essentials.DeviceTests.csproj::TargetFramework=net10.0-ios]
Build FAILED.
🟢 With fix — 📱 Maps_Tests (NavigationModeUsesExpectedDirectionsMode, BicyclingNavigationModeUsesCyclingDirections, BicyclingNavigationModeFallsBackWhenCyclingIsUnavailable): ⚠️ ENV ERROR · 46s
No log file found
⚠️ Failure Details
- 🛠️ Maps_Tests (NavigationModeUsesExpectedDirectionsMode, BicyclingNavigationModeUsesCyclingDirections, BicyclingNavigationModeFallsBackWhenCyclingIsUnavailable) without fix: build failed before tests could run
/Users/cloudtest/vss/_work/1/s/src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs(49,45): error CS0117: 'MapImplementation' does not contain a definition for 'GetDirectionsMode' [/Users/cloudtest/vss...
⚠️ Maps_Tests (NavigationModeUsesExpectedDirectionsMode, BicyclingNavigationModeUsesCyclingDirections, BicyclingNavigationModeFallsBackWhenCyclingIsUnavailable) with fix:XHarness did not produce the expected fresh result 'testResults.xml' for requested class(es) 'Microsoft.Maui.Essentials.DeviceTests.Maps_Tests' (the target tests did not run).
📁 Fix files reverted (1 files)
src/Essentials/src/Map/Map.ios.watchos.macos.cs
📋 Pre-Flight — Context & Validation
PR #37942 Pre-Flight
Scope
- PR:
[iOS/MacCatalyst] Map bicycling navigation to cycling directions - Issue: #37937,
NavigationMode.Bicycling doesn't work for iOS map navigation - Platform: iOS
- Base / materialized head:
origin/mainat1b88601bba/ squashed review commita0b4e53c55 - Gate: Inconclusive. Do not rerun it and do not treat it as evidence that the fix fails. The with-fix run built, but the wrapper did not accept the XHarness result filename; retained XHarness XML files show the
Maps_Testsclass passing 12/12.
Defect
The Apple MapImplementation.OpenPlacemark mapping handled default, driving, transit, and walking, but omitted NavigationMode.Bicycling. The initialized MKDirectionsMode.Default therefore reached MKMapItem.OpenMaps, causing Apple Maps to open in its default driving mode rather than cycling mode.
PR Approach
The PR extracts two GetDirectionsMode overloads. The production overload computes whether cycling is available with linker-friendly iOS/Mac Catalyst runtime checks; the deterministic overload accepts that capability as a Boolean and maps bicycling to MKDirectionsMode.Cycling, with MKDirectionsMode.Default as the fallback. It adds iOS/Mac Catalyst device tests for all existing navigation mappings, the production bicycling path, and unavailable-cycling fallback.
- var mode = MKDirectionsMode.Default;
- switch (options.NavigationMode)
- {
- case NavigationMode.Driving:
- mode = MKDirectionsMode.Driving;
- break;
- case NavigationMode.Transit:
- mode = MKDirectionsMode.Transit;
- break;
- case NavigationMode.Walking:
- mode = MKDirectionsMode.Walking;
- break;
- case NavigationMode.Default:
- mode = MKDirectionsMode.Default;
- break;
- }
launchOptions = new MKLaunchOptions
{
- DirectionsMode = mode
+ DirectionsMode = GetDirectionsMode(options.NavigationMode)
};
+
+ internal static MKDirectionsMode GetDirectionsMode(NavigationMode navigationMode)
+ {
+#if IOS || MACCATALYST
+ var isCyclingAvailable =
+ OperatingSystem.IsIOSVersionAtLeast(14) || OperatingSystem.IsMacCatalystVersionAtLeast(14);
+#else
+ const bool isCyclingAvailable = false;
+#endif
+ return GetDirectionsMode(navigationMode, isCyclingAvailable);
+ }
+
+ internal static MKDirectionsMode GetDirectionsMode(NavigationMode navigationMode, bool isCyclingAvailable) =>
+ navigationMode switch
+ {
+ NavigationMode.Bicycling when isCyclingAvailable => MKDirectionsMode.Cycling,
+ NavigationMode.Driving => MKDirectionsMode.Driving,
+ NavigationMode.Transit => MKDirectionsMode.Transit,
+ NavigationMode.Walking => MKDirectionsMode.Walking,
+ _ => MKDirectionsMode.Default,
+ };Files and Modification Boundary
- Production target and expected baseline allow-list:
src/Essentials/src/Map/Map.ios.watchos.macos.cs - Read-only PR test file:
src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs - The worktree contains pre-existing harness changes under
.github/andeng/; candidates must preserve them. OnlyEstablishBrokenBaseline.ps1may restore the production target. - The PR adds no public API.
Required Test Surface
Use exactly the targeted device-test command below. It runs the detected primary test and the mapping/fallback regressions in the same Maps_Tests category; no full suite is authorized.
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Essentials -Platform ios -TestFilter "Category=Maps" -IncludeClasses "Microsoft.Maui.Essentials.DeviceTests.Maps_Tests"Required assertions are:
NavigationModeUsesExpectedDirectionsModeBicyclingNavigationModeUsesCyclingDirectionsBicyclingNavigationModeFallsBackWhenCyclingIsUnavailable
Prior Alternatives to Avoid
Historical review artifacts describe two already-attempted mechanisms; neither should be repeated:
- A static
IReadOnlyDictionary<NavigationMode, MKDirectionsMode>plus aCreateLaunchOptionsfactory and totality test. Its iOS run produced 11/11 passing XHarness results, but the attempt crossed the baseline boundary by editing the read-only test file and was therefore aggregate-blocked. - A name-based enum convention adapter that special-cased the
Bicycling/Cyclingvocabulary mismatch and parsed matching enum names. It compiled, but its iOS host aborted during AOT initialization before discovery and produced no valid Maps result.
Each new candidate must use a distinct root-cause hypothesis and mechanism from the PR and both historical alternatives.
🔬 Code Review — Deep Analysis
Expert Code Review — PR #37942
Verdict
NEEDS_CHANGES
Confidence: low overall. The remaining test defect is mechanically reproducible from the checked-in deployment target and runtime guard, but confidence in the PR's total merge readiness is capped because the official gate remained INCONCLUSIVE, the required-check query was unavailable without GitHub authentication, and no Mac Catalyst runtime result was available. This is a localized Apple-platform change; the production mapping itself appears sound.
Independent Assessment
What the raw PR changes
The PR replaces the inline Apple navigation-mode switch with GetDirectionsMode helpers. It maps NavigationMode.Bicycling to MKDirectionsMode.Cycling when the native symbol is available (iOS 14+ or Mac Catalyst 14+), preserves the existing Driving/Transit/Walking/Default mappings, and otherwise falls back to MKDirectionsMode.Default.
Both public coordinate- and placemark-based entry points converge on OpenPlacemark, so the new mapping reaches both forms of Map.OpenAsync/TryOpenAsync. NavigationMode.None still bypasses MKLaunchOptions, and unknown enum values still fall back to Default.
Inferred motivation and approach quality
The old switch omitted NavigationMode.Bicycling, so its initialized default value was passed to Apple Maps and the issue reproduction opened driving directions. The extracted mapper fixes that exact omission. The Boolean capability seam is a reasonable, small way to test both availability branches without invoking Apple Maps. It adds no public API or shared state.
The runtime boundary is consistent with the platform contract:
- Xcode 26.5's
MKMapItem.hdeclaresMKLaunchOptionsDirectionsModeCyclingavailable from iOS 14.0 (and macOS 11.0). - The .NET MapKit binding marks
MKDirectionsMode.Cyclingas iOS 14.0+. - MAUI's Mac Catalyst minimum is 15.0, so the Catalyst production path is always on a supported version today.
- MAUI's iOS minimum remains 13.0, so the iOS fallback is reachable and must remain correct.
No handler lifecycle, mapper, allocation hot path, trimming/AOT, public API, path-input, or external-output-contract concern is introduced.
Reconciliation with PR Narrative
The author's description matches the code: the original Apple mapper omitted bicycling, the PR selects MapKit cycling where available, and iOS 13 falls back to the default mode. The linked issue's coordinate-based reproduction reaches the changed OpenPlacemark path.
The claim that tests cover the unavailable-cycling fallback is true for the deterministic two-argument helper. However, the newly added production-overload fact assumes every iOS test host is iOS 14+, which conflicts with the PR's documented iOS 13 fallback and the repository's iOS 13.0 deployment target.
Concrete Findings
Blocking error
-
[moderate] Regression Prevention and Test Coverage — runtime-path test fails on supported iOS 13
src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs:53BicyclingNavigationModeUsesCyclingDirectionsalways expectsMKDirectionsMode.Cycling. On iOS 13, the production overload correctly computesisCyclingAvailable == falseand returnsMKDirectionsMode.Default, so this test fails withAssert.Equal(Cycling, Default).Directory.Build.targetsdeclares iOS 13.0 as the supported/deployment minimum.The production-path assertion should be availability-aware (or run only when cycling is available), while the deterministic
isCyclingAvailable: trueandfalsetests continue to prove both mappings. This finding is independent of the inconclusive gate.
Discussion items
- The tests validate the extracted mapping rather than inspecting the
MKLaunchOptionspassed toMKMapItem.OpenMaps. BecauseOpenPlacemarkassigns the helper result directly and native app launch is interactive, this seam is reasonable, but the original Apple Maps UI outcome remains unautomated. - The implementation compiles for both iOS and Mac Catalyst, and the API/version reasoning supports both. No Mac Catalyst device-test execution evidence was available in this review.
Warnings
- The official gate must remain classified INCONCLUSIVE. It is not evidence that the PR fix fails.
- Live CI is red for an infrastructure-stage JDK provisioning failure, not for modified code or a test assertion. This should not be converted into an inline source finding.
Suggestions
- Rename the runtime-path fact if its final form becomes availability-dependent, so it describes both the Cycling and Default outcomes.
- If practical, retain a manual verification note for the linked issue's exact Apple Maps launch result, since enum mapping tests cannot observe which route mode Apple Maps renders.
Prior Review Reconciliation
All three review surfaces were checked: top-level reviews, inline review comments, and PR issue comments.
| Prior finding | Commit reviewed | Current status | Evidence |
|---|---|---|---|
| Mac Catalyst compiled the original iOS-only branch and fell back to Default | 6d6d6840 |
Fixed | Current code uses `IOS |
| Mac Catalyst positive test returned Default | 6d6d6840 |
Fixed | Same guard correction; current Catalyst minimum is 15.0. |
| Only the positive bicycling case was tested; legacy mappings/fallback were uncovered | 6d6d6840 |
Fixed | Current theory covers all enum modes and the false-capability fact covers fallback. |
| Production one-argument overload/version decision was not exercised | 802d36c7 |
Fixed | Commit 8d1313df added the direct production-overload fact. |
| Direct production-overload fact is OS-version brittle | 8d1313df (latest Copilot review, suppressed comment) |
Unresolved | The current assertion still expects Cycling unconditionally while production intentionally returns Default on iOS 13. |
The earlier CHANGES_REQUESTED reviews were against superseded commits and their concrete Mac Catalyst/mapping-coverage errors are resolved. The remaining latest-head concern was present only as a suppressed Copilot comment, so the inline finding written by this pass does not duplicate an existing posted inline comment.
Regression and Failure-Mode Analysis
| Scenario | Result at raw PR HEAD | Assessment |
|---|---|---|
| iOS 14+ with Bicycling | Returns Cycling; OpenPlacemark passes it to MapKit |
Correct |
| iOS 13 with Bicycling | Returns Default, avoiding an unavailable native constant |
Correct production behavior; added runtime-path test is incorrect |
| Mac Catalyst 15+ with Bicycling | Catalyst guard is true and returns Cycling |
Correct by API/minimum-version analysis |
| Cycling unavailable via deterministic seam | Returns Default |
Covered |
| Driving, Transit, Walking, Default | Preserve prior mappings | Covered |
| None | Production still supplies no MKLaunchOptions; helper's test-only result is Default |
No behavior change |
Unknown NavigationMode value |
Switch-expression discard arm returns Default | Safe fallback |
| Coordinate vs. placemark callers | Both converge on OpenPlacemark |
Fix propagates to linked reproduction and placemark calls |
| Repeated calls / lifecycle | No latch, cache, subscription, or static mutable state added | No propagation/lifecycle risk found |
The mechanical regression cross-reference reported CLEAN, with no REVERT or overlap entries in regression-check/risks.json.
Test and CI Evidence
Gate
- Caller-supplied result: INCONCLUSIVE; it was not rerun and is not treated as a PR failure.
- The without-fix attempt could not compile because the PR tests reference the newly introduced helper (
CS0117). That is a structural red result, not proof of the original user-visible behavior. - The with-fix wrapper rejected the result because it expected a specifically named
testResults.xml. - Retained XHarness diagnostics nevertheless contain three iOS 26.5 xUnit result files, each reporting 12/12 selected
Maps_Testspassing. These artifacts are supporting evidence only; they do not override the official INCONCLUSIVE gate classification and do not exercise iOS 13 or Mac Catalyst.
Live CI
- Anonymous check-run data for raw PR HEAD
8d1313dfshowed 34 completed checks. - iOS integration/AOT/trim legs, macOS Release build/pack, Windows builds, and other reported legs succeeded.
- The aggregate
maui-prand Build Analysis checks failed because Build macOS (Debug) / Provision JDK exited before the source build; Build Analysis identified that exact infrastructure stage. The aggregate summary reported 17,907 tests passed and 0 failed. gh pr checks --requiredcould not authenticate, so which checks are branch-required could not be independently enumerated. This and the official gate status cap overall confidence at low.
External Output Contract
Not applicable. The raw PR does not add or modify a consumer of external tool output.
Consolidated Reviewer Feedback
The production fix is focused and correctly routes bicycling through MapKit's cycling mode on supported Apple versions, while preserving iOS 13 fallback and all existing navigation mappings. Before merge, update the direct production-overload device test so it does not fail on MAUI's supported iOS 13 target. Keep the deterministic true/false capability tests, and do not interpret either the gate's wrapper failure or the CI JDK-provisioning failure as a defect in the production change.
🛠️ Try-Fix — Analysis & Comparison
PR #37942 — STEP 5a Alternative Fix Candidates
Bound: at most two candidates, sequential.
Platform: iOS
Required test: Run-DeviceTests.ps1 -Project Essentials -Platform ios -TestFilter "Category=Maps" -IncludeClasses "Microsoft.Maui.Essentials.DeviceTests.Maps_Tests"
Candidate 1 — Native MapKit symbol probe and target-side downgrade
Model: claude-opus-5
Result:
Artifacts: CustomAgentLogsTmp/PRState/37942/PRAgent/try-fix/attempt-1
Full narrative: CustomAgentLogsTmp/PRState/37942/PRAgent/try-fix-1/content.md
Approach
Translate NavigationMode.Bicycling unconditionally to MKDirectionsMode.Cycling, then independently downgrade the target MapKit mode to Default only if the loaded MapKit binary does not export MKLaunchOptionsDirectionsModeCycling. The production capability signal would come from a native dlsym probe; the existing Boolean overload would remain only as the deterministic entry point required by the read-only PR tests.
This differs from the PR's version-gated switch because translation and target capability are separate operations: bicycling cannot disappear through the mapper's default arm, while unsupported native functionality is detected from the actual framework symbol rather than inferred from an OS-version proxy. It also avoids the historical static dictionary/launch-options factory and enum-name parsing mechanisms.
Candidate diff
No diff was produced. Baseline establishment failed before .github/.baseline-state.json was created, so the production file never entered the modification allow-list and was not edited.
Test result
The authorized iOS Maps_Tests command was not run. Without an applied candidate, running it would have tested the PR's committed implementation rather than this approach and could not validate the candidate.
Failure analysis
EstablishBrokenBaseline.ps1 rejected the worktree because 55 pre-existing tracked harness files under .github/ and eng/ are modified. The candidate was forbidden to clean, stash, reset, commit, mask, or otherwise alter those paths. This is an environment precondition conflict, not evidence against the proposed mechanism.
The inline expert self-review recorded zero findings against the empty diff. The exact script-only restore command was run; because baseline state was never created and no edits occurred, it correctly reported No baseline state found / Restored False. All required attempt artifacts are present.
Candidate 2 — Build-target capability profile and bicycling fast path
Model: gpt-5.6-sol
Result:
Artifacts: CustomAgentLogsTmp/PRState/37942/PRAgent/try-fix/attempt-2
Full narrative: CustomAgentLogsTmp/PRState/37942/PRAgent/try-fix-2/content.md
Approach
Intercept NavigationMode.Bicycling before the unchanged legacy mapper and choose its result from a compile-target capability profile. Supported Apple targets would return MKDirectionsMode.Cycling directly; an explicitly unsupported profile would return MKDirectionsMode.Default. Default, driving, transit, and walking would retain the original imperative switch. The Boolean overload required by the read-only regression tests would enter the same bicycling fast path deterministically.
This differs from the PR because it does not compute a combined runtime OS-version predicate or replace the legacy switch with a guarded switch expression. It differs from Candidate 1 because it rejects an unsupported source request before translation rather than probing a native symbol and downgrading an already-translated target mode. It also uses no mapping collection, launch-options factory, static capability population, enum-name parsing, reflection, or native probing.
Candidate diff
No diff was produced. The same mandatory baseline check failed before creating .github/.baseline-state.json, so the production target was never allow-listed and remained untouched.
Test result
The authorized iOS Maps_Tests command was not run because no Candidate 2 implementation could legally be applied. The primary mapping test and both mandatory bicycling regressions therefore have no Candidate 2 result.
Failure analysis
EstablishBrokenBaseline.ps1 again rejected the 55 pre-existing tracked harness modifications. Candidate 2 honored Candidate 1's recorded result, selected a distinct mechanism, and did not reopen Candidate 1 or bypass the safety boundary. The blocker is shared environment state, not a code or assertion failure.
The inline expert self-review recorded zero findings against the empty diff. The exact script-only restore command completed with the expected no-state result (No baseline state found / Restored False), and all required attempt artifacts are present.
Aggregate outcome
Two candidates were generated—the maximum authorized—and both are Blocked / unverified because the baseline safety script could not create a modification allow-list in the pre-dirtied worktree. Neither candidate changed production or test code, neither ran the requested test command, and neither should be treated as a passing or failing implementation. No third candidate, cross-pollination pass, final audit, rubber-duck review, or separate expert-review agent was launched.
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winning candidate: pr-plus-reviewer
The PR's production fix is focused and technically sound, but the submitted test suite contains a
supported-platform defect: its production-overload assertion always expects cycling even though the
implementation intentionally falls back to MKDirectionsMode.Default on iOS 13. The
pr-plus-reviewer candidate is the only candidate that preserves the sound production change while
correcting that concrete expert-review finding.
Comparative Ranking
| Rank | Candidate | Implementation and evidence | Assessment |
|---|---|---|---|
| 1 | pr-plus-reviewer |
Keeps the PR implementation and makes the runtime-path test availability-aware. The focused diff passes diff --check. Its single required validation run was blocked before tests by the installed .NET iOS/Xcode 26.0-versus-26.5 mismatch. |
Winner. Resolves the only blocking code-review finding with the smallest behavioral change. The blocked run is not a regression failure. |
| 2 | pr |
Correctly maps bicycling to Cycling on iOS 14+/Mac Catalyst and to Default on iOS 13; preserves all legacy mappings. The official gate is inconclusive, although retained iOS 26.5 XHarness XML reports 12/12 selected tests passing. |
Production fix is good, but the unconditional production-overload test can fail on MAUI's supported iOS 13 target. Submitted HEAD therefore needs the reviewer patch. |
| 3 | try-fix-1 |
Proposed unconditional translation followed by a native MapKit dlsym capability probe. Baseline establishment blocked before implementation; no diff or test result exists. |
Unverified and materially more complex than the platform-version APIs already used by MAUI. It cannot outrank an implemented focused fix. |
| 4 | try-fix-2 |
Proposed a compile-target capability profile and bicycling fast path. Baseline establishment blocked before implementation; no diff or test result exists. | Unverified, and a build-target-only profile does not naturally represent the supported runtime transition from iOS 13 fallback to iOS 14 cycling. |
Expert Review Resolution
The single expert pass reported one moderate blocking finding at
src/Essentials/test/DeviceTests/Tests/Maps_Tests.cs:53. pr-plus-reviewer changes the assertion to
expect Cycling only when the runtime supports it and Default otherwise, while retaining the
deterministic positive and fallback tests. No production source, public API, lifecycle behavior,
shared state, or mapping behavior is changed by the refinement.
Validation and Uncertainty
| Candidate | Regression-test status | Consequence |
|---|---|---|
pr |
Gate INCONCLUSIVE; retained iOS 26.5 results show 12/12 selected tests passed, but do not exercise iOS 13 or Mac Catalyst. | Not treated as a failing fix, but the iOS 13 assertion defect is established directly from the deployment target and code path. |
pr-plus-reviewer |
BLOCKED during build by the local Xcode version requirement; no tests executed. | Not treated as a regression failure. The candidate remains unverified at runtime. |
try-fix-1 |
BLOCKED before implementation; no tests executed. | No evidence that the design compiles or fixes the defect. |
try-fix-2 |
BLOCKED before implementation; no tests executed. | No evidence that the design compiles or fixes the defect. |
No candidate has an accepted passing gate result, and no candidate failed a regression assertion.
The recommendation therefore rests on the expert-reviewed code path and the relative completeness
of each candidate. Runtime verification on iOS 13 and Mac Catalyst remains outstanding.
Required Change
Apply pr-plus-reviewer/reviewer.patch to the submitted PR. Because that winning change is not in
the raw PR HEAD, the correct recommendation is REQUEST CHANGES.
📱 UI Tests — Button,Label,Layout
Detected UI test categories: Button,Label,Layout
❌ Deep UI tests — 354 passed, 1 failed, 8 skipped across 3 categories on platform-pool agent (replaces in-process counts above).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
Button |
71/72 (1 skipped) ✓ | — |
Label |
90/92 (2 skipped) ✓ | — |
Layout |
193/199 (1 ❌, 5 skipped) | — |
🔍 AI analysis of failures — PR-related vs unrelated
🔍 AI-generated triage (GitHub Copilot CLI) — a heuristic judgement of whether each deep UI test failure is connected to this PR's changes. Verify before relying on it.
Likely unrelated: the failures appear pre-existing, flaky, or infrastructure.
- ● Unrelated — Layout element lookup (~1 test): the PR changes iOS Map navigation-mode mapping and Essentials device tests, neither of which affects Editor/Layout UI behavior or the element lookup that raised
NoSuchElementException.
❌ Layout — 1 failed test
EditorsScrollingPageTest
OpenQA.Selenium.NoSuchElementException : An element could not be located on the page using the given search parameters.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Appium.AppiumDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Appium.AppiumDriver.FindElement(String by, String value)
at OpenQA.Selenium.Appium.MobileBy.FindElement(ISearchContext context)
at OpenQA.Selenium.WebDriver.FindElement(By by)
at OpenQA.Selenium.Appium.AppiumDriver.FindElement(By by)
at Microsoft.Maui.TestCases.Tests.KeyboardScrolling.CloseiOSEditorKeyboard(AppiumDr
...
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)
🧭 Next Steps — reviewer changes required
The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.
Why: The PR's production mapping is sound, but its production-overload test can fail on supported iOS 13. pr-plus-reviewer wins because it fixes that expert-review finding with one availability-aware test change, while both try-fix candidates produced no implementation or validation evidence.
Address the actionable findings in this review before merging.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1f63ff07-fc13-4899-b01e-ff1829d98bb0
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Description of Change Maps `NavigationMode.Bicycling` to MapKit's `MKDirectionsMode.Cycling` on iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode. On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to `MKDirectionsMode.Default`. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback. ### Issues Fixed Fixes #37937 Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Maps
NavigationMode.Bicyclingto MapKit'sMKDirectionsMode.Cyclingon iOS 14 and later and on supported Mac Catalyst versions. Previously, the shared Apple implementation omitted bicycling from its direction-mode mapping, so Apple Maps fell back to its default driving mode.On iOS 13, where MapKit does not provide the cycling launch mode, bicycling gracefully falls back to
MKDirectionsMode.Default. Device tests cover every navigation-mode mapping and the unavailable-cycling fallback.Issues Fixed
Fixes #37937