You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[xcode27.1] Update to Xcode 27.1 Beta 1 based on release/10.0.1xx - #26705
⚠️Documentation — This condition is now for Xcode 27.1, but the maintenance comment immediately above still says the hardcoded check is “currently 26.6”. Please update that comment (or make it version-agnostic) so the next Xcode bump does not follow stale guidance.
The iOS 27.1 simulator runtime shipped with Xcode 27.1 beta 1
(27A9269) supports only iPhone Duo. The existing selector requests
an iPhone 14 for recent iOS versions, so simctl rejects that pairing
with "Incompatible device" and SimulatorLoader throws
NoDeviceFoundException while Jenkins is still populating test tasks.
This blocked monotouch_ios, introspection, linker_ios, fsharp,
xcframework, and interdependent-binding-projects in all three attempts
of Azure DevOps build 15445909. The jobs failed before executing tests
or producing TestSummary.md, and retrying could not fix the incompatible
device/runtime selection.
Read ProductBuildVersion from the selected Xcode application's
Contents/version.plist using the existing network-disabled XML loader.
Pass that Xcode root into the selector from both Jenkins and
SimulatorLoaderFactory so both simulator discovery paths use the same
build-specific behavior. Report missing build metadata explicitly.
Select iPhone Duo only when the requested iOS runtime is 27.1 and the
Xcode build is exactly 27A9269. Preserve the existing selections for
other Xcode builds, other iOS versions, and tvOS instead of extending
this beta-specific workaround to later betas or releases.
CI failure: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=15445909
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6d6aa9a2-9f36-43e8-851d-561fe78573e3
dalexsoto
changed the title
[xcode27.1] Update to Xcode 27.1 Beta 1 on release/10.0.1xx
[xcode27.1] Update to Xcode 27.1 Beta 1 based on release/10.0.1xx
Sep 29, 2026
Warning: The system requirements for the hash to compare against (c08806f�(B) are different than for the current hash. Skipping API/generator comparison.�(B
<!-- 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!
<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->
### Description of Change
<!-- Enter description of the fix in this section -->
Adds first-class iPhone Duo support to
`Microsoft.Maui.Controls.Foldable` so `TwoPaneView` can automatically
split around an active iOS division reserved region. Queries and
coordinate conversion are scoped to the observed native view and window,
preserving correct behavior across windows and scenes instead of relying
on global screen geometry.
The implementation was originally staged behind a capability switch
while the bindings from dotnet/macios#26705 were unreleased. Official
Xcode 27.1 support is now available through workload set `10.0.402.1`,
including `Microsoft.iOS.Sdk.net10.0_27.1` `27.1.10018`. The native path
now enables automatically when the iOS target platform version is 27.1
or later; `IosDuoBindingsAvailable` remains available as an explicit
build-graph override.
#### Customer behavior
- Active division reserved regions drive `TwoPaneView` pane geometry.
- Inactive division regions and occlusion regions do not force a split.
- `UIHingeInteraction` supplies hinge state and angle for
interaction/effects only; angle is never used to guess layout geometry.
- The existing Controls.Sample Foldable page displays mode, physical
division status, visible panes, and live hinge angle.
#### Implementation
- Registers a scoped iOS `IFoldableService` and tracks the relevant
view/window/scene.
- Uses
`UIView.GetReservedRegions(UIViewReservedRegionKind.CreateDivision())`
after the iOS 27.1 runtime guard.
- Converts UIKit hinge radians to the existing degree-based MAUI API.
- Waits for UIKit's first hinge update for `GetHingeAngleAsync()` and
refreshes state through the documented interaction enable cycle.
- Attaches interactions to the window-controller root view and
removes/disposes them on unload, handler replacement, or service
disposal.
- Makes internal foldable queries view-aware while retaining the
existing public API surface.
- Binds `DualScreenInfo.Current` to the last activated MAUI iOS
scene/window, analogous to Android's resumed-activity behavior.
- Makes `WindowSpanModeStateTrigger` follow its attached visual
element/window.
- Re-queries layout geometry after UIKit finishes settling reserved
regions following a hinge callback. The delayed refresh is coalesced,
skips unloaded elements, and runs through the shared layout-guide path
so `TwoPaneView`, element-scoped `DualScreenInfo`,
`DualScreenInfo.Current`, and property-only state-trigger consumers
remain synchronized.
#### Compatibility
- Android behavior and public API semantics remain unchanged.
- iOS versions before 27.1 and non-foldable devices retain the existing
configurable responsive split behavior.
- Mac Catalyst remains unchanged; the Duo APIs compile only for iOS.
- No reflection, selector strings, private APIs, public API additions,
or new CI lane are introduced.
#### Validation
Official workload installation was isolated under session storage rather
than changing the machine-global workload graph:
```text
.NET SDK: 10.0.402
Workload set: 10.0.402.1
Microsoft.iOS SDK/ref/runtime: 27.1.10018
Xcode: 27.1 (27A9275)
```
Build and test results:
- `Controls.Foldable` `net10.0-ios27.1` with the official bindings:
succeeded, 0 errors. The newer SDK reports existing MAUI-wide
nullability/obsoletion warnings outside this change.
- `Controls.Foldable` `net10.0-ios26.0`: succeeded, 0 warnings, 0
errors.
- `Controls.Foldable` `net10.0-maccatalyst26.0`: succeeded, 0 warnings,
0 errors.
- `Controls.Foldable` `net10.0-android36.0`: succeeded, 0 warnings, 0
errors.
- Controls.Sample `net10.0-ios27.1` / `iossimulator-arm64`: succeeded.
The official SDK requires an invocation-only minimum deployment target
override of iOS 15.0 on this branch.
- `dotnet test
src/Controls/Foldable/test/Controls.Foldable.UnitTests.csproj
--no-restore --nologo --verbosity minimal`: 32 passed, 0 failed.
- `git diff --check`: passed.
Runtime validation used DevFlow from `dotnet/maui-labs`, temporarily
enabled only in the local Debug sample and removed before commit. The
audit ran on an iOS 27.1 iPhone Duo simulator with the official stable
workload:
- **Closed:** division inactive, hinge `0°`, responsive layout retained.
- **Partially Open:** division active, hinge approximately `128°`,
`Mode: Wide`, with two exact `455.5`-point panes separated by the
`40`-point division region.
- **Open:** division inactive, hinge `180°`, responsive layout restored.
- Live **Open → Partially Open → Open** transitions completed without
navigation or restart.
- Active physical division geometry ignored responsive threshold and
pane-length slider values; exact reserved-region pane bounds remained
authoritative.
- All four sliders were exercised, including threshold transitions and
`0/1`, `1/0`, and `0.25/0.75` pane-length ratios.
- Pane priority, all Tall/Wide configurations (including reversed and
SinglePane modes), `ModeChanged` status, and both Reset buttons were
exercised successfully.
- The audit identified a stale element-scoped `DualScreenInfo` division
after Partially Open → Open. The shared delayed region refresh in this
PR fixes the issue; the final build reported `Division region: inactive`
and `180°` live without restart.
- An independent code review confirmed the refresh covers property-only
consumers and `DualScreenInfo.Current`, is coalesced, avoids unloaded
elements, and leaves Android/Mac Catalyst behavior unchanged.
### Issues Fixed
<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->
N/A — implements iPhone Duo support enabled by dotnet/macios#26705.
<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
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
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.
No description provided.