Skip to content

[xcode27.1] Update to Xcode 27.1 Beta 1 based on release/10.0.1xx - #26705

Merged
dalexsoto merged 4 commits into
xcode27.1from
dev/alex/xc271
Sep 30, 2026
Merged

dalexsoto merged 4 commits into
xcode27.1from
dev/alex/xc271

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 24, 2026 12:03
@dalexsoto dalexsoto added do-not-merge Do not merge this pull request ready-to-review This PR is ready to review/merge. labels Sep 24, 2026
@dalexsoto dalexsoto changed the title [xcode27.1] Update to Xcode 27.1 Beta 1 [xcode27.1] Update to Xcode 27.1 Beta 1 on release/10.0.1xx Sep 24, 2026

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.

Copilot review overview

🟡 Changes recommended

Make.config retains xcode27.0 prerelease identifiers on the Xcode 27.1 branch.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Updates the repository to Xcode 27.1 Beta 1 and adds corresponding iOS 27.1 bindings.

Changes:

  • Updates Xcode, SDK, simulator, CI, and supported-version metadata.
  • Adds UIKit, AVKit, and AVFoundation APIs.
  • Refreshes documentation known failures.
  • Requires correcting stale Xcode 27.0 prerelease identifiers in Make.config; minor comment and naming issues also remain.
File Summary
tools/​devops/​automation/​templates/​variables/​common.yml Selects the Beta Xcode channel.
tools/​common/​SdkVersions.cs Updates SDK constants.
tests/​cecil-tests/​Documentation.KnownFailures.txt Tracks expected documentation failures.
src/​UIKit/​UIEnums.cs Adds new UIKit enums.
src/​uikit.cs Adds iOS 27.1 UIKit bindings.
src/​avkit.cs Adds camera-direction bindings.
src/​avfoundation.cs Adds new camera types.
Make.versions Updates the iOS SDK version.
Make.config Updates Xcode configuration and simulator mappings; prerelease identifiers require correction.
builds/​Versions-iOS.plist.in Updates supported iOS platform versions.

Comment thread Make.config Resolved
Comment thread src/avkit.cs Resolved
@vs-mobiletools-engineering-service2

This comment has been minimized.

rolfbjarne
rolfbjarne previously approved these changes Sep 24, 2026
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

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.

Copilot review overview

🔵 Needs a closer look

Address the AVKit binding inconsistencies and required callback contract, and centralize the simulator build ID.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Low severity Update stale Xcode version comment

Make.config:299

⚠️ 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.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto
dalexsoto changed the base branch from release/10.0.1xx to xcode27.1 September 29, 2026 15:12
dalexsoto and others added 4 commits September 29, 2026 11:25
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6b3f93ea-f8fc-4b5e-9890-f348ef749b6d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6b3f93ea-f8fc-4b5e-9890-f348ef749b6d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6b3f93ea-f8fc-4b5e-9890-f348ef749b6d
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
Copilot AI review requested due to automatic review settings September 29, 2026 15:26
@dalexsoto dalexsoto removed the do-not-merge Do not merge this pull request label Sep 29, 2026
@dalexsoto 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

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.

Copilot review overview

🟡 Changes recommended

Unresolved critical and moderate API metadata and documentation issues remain.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)
Resolved since last review (1)

Comment thread src/avfoundation.cs
Comment on lines +18324 to +18327
/// <summary>A built-in outer ultra-wide camera discoverable through a device discovery session.</summary>
[NoTV, NoMac, NoMacCatalyst, iOS (27, 1)]
[Field ("AVCaptureDeviceTypeBuiltInOuterUltraWideCamera")]
BuiltInOuterUltraWideCamera,
Comment thread src/avkit.cs
Comment on lines +1708 to +1711
[NoTV, NoMac, NoMacCatalyst, iOS (27, 1)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface AVCaptureDeviceDescriptor {
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

Warning: The system requirements for the hash to compare against (c08806f�(B) are different than for the current hash. Skipping API/generator comparison.�(B

✅ API diff vs stable

NET (empty diffs)

Pipeline on Agent
Hash: 71b56f98487c74960e970f4bcd834707148b48cc [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #71b56f9] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 202 tests passed 🎉

Tests counts

✅ assembly-processing: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ framework: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ generator: All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (macOS): All 21 tests passed. [attempt 3] Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ windows: All 3 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. [attempt 2] Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Sonoma (14): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ Tests on macOS Golden Gate (27): All 5 tests passed. [attempt 2] Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 71b56f98487c74960e970f4bcd834707148b48cc [PR build]

@dalexsoto
dalexsoto merged commit eb45b2d into xcode27.1 Sep 30, 2026
56 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc271 branch September 30, 2026 01:31
kubaflo added a commit to dotnet/maui that referenced this pull request Oct 22, 2026
<!-- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants