Skip to content

[release/10.0.1xx] Merge Xcode 27.1 into release/10.0.1xx - #26892

Merged
dalexsoto merged 12 commits into
release/10.0.1xxfrom
dev/alex/xc271
Oct 16, 2026
Merged

dalexsoto merged 12 commits into
release/10.0.1xxfrom
dev/alex/xc271

Conversation

@dalexsoto

Copy link
Copy Markdown
Member

No description provided.

dalexsoto and others added 11 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
The introspection job in Azure DevOps build 15569683 for #26839 aborts
while attempting to create an iOS 16.0 simulator on macOS 27. The runtime
is not supported on that host with Xcode 27.1 RC; the missing test summary
is a consequence of the harness abort, not a separate test failure.
Switching to a compatible runtime also exposes genuine 17.0 simulator
API discrepancies and a missing native framework dependency.

Compatible minimum simulator runtimes
------------------------------------
Raise the configured minimum iOS and tvOS simulator versions from 16.0
to 17.0 in Make.config and regenerate the checked-in SdkVersions.cs.
Apple's Xcode requirements identify 17.0 as the lowest supported
simulator version for this Xcode, rather than the previously installed
18.4 runtime. Official iOS 17.0 (21A328) and tvOS 17.0 (21J353) runtimes
were imported and successfully booted locally.

This changes the extra-runtime installation defaults and the versions
used by xharness's minimum-runtime targets. It does not raise application
deployment minima: iOS and tvOS applications still support 15.0. Current
simulator targets remain iOS 27.1 and tvOS 27.0.

Preserve binding metadata for simulator-only API discrepancies
------------------------------------------------------------
Add a shared introspection predicate for the three
CMFormatDescriptionExtensionKeys properties HasAdditionalViews,
HasLeftStereoEyeView, and HasRightStereoEyeView. Apple's headers declare
them for 17.0, but their symbols are absent from the 17.0 simulators.
Use the same predicate for field existence/non-null checks and simulator
field availability so these test surfaces agree.

Skip only PHImageRequestOptions targetHDRHeadroom getter/setter and
PHLivePhotoRequestOptions preferHDR getter/setter on 17.0 simulators.
Keep PHImageRequestOptions preferHDR covered. All exceptions require a
simulator running exactly major/minor 17.0; later runtimes and physical
devices continue to validate these APIs. Do not change public binding
availability to accommodate incorrect simulator implementations.

Load the framework that implements LARight's category
---------------------------------------------------
LARight's authorizeWithLocalizedReason:inPresentationContext:completion:
selector is implemented by a LocalAuthenticationEmbeddedUI category.
A native probe confirmed the selector is absent until that framework is
loaded. Correct native dependency gathering instead of suppressing the
selector assertion or changing the binding.

Weak-link LocalAuthenticationEmbeddedUI only for iOS SDKs 16 and newer
when the retained product assembly contains LocalAuthentication.LARight
and LocalAuthentication itself is included. Inspect the post-trim type
set so an LAContext-only application does not gain an unnecessary UI
dependency; LAPersistedRight correctly retains its LARight base.
Weak linkage preserves loading on older supported deployment targets.
Keep the product-assembly identity check out of LEGACY_TOOLS because
legacy mtouch's Application has no Profile member.

Regression coverage and RC device selection
------------------------------------------
Update the untrimmed iOS framework baseline and assert the UI dependency
is absent from the existing fully trimmed baseline. Add fully trimmed
fixtures retaining LARight, LAPersistedRight, or only LAContext, forwarding
AdditionalDefineConstants through MySimpleApp's shared project. Assert
LocalAuthentication remains linked in all three fixtures, preventing
the negative test from passing because the entire namespace disappeared.

Inspect every Mach-O slice and require exactly one LC_LOAD_WEAK_DYLIB
command for positive cases and no UI load command for negative cases.
Compare the load command using its unsigned representation.

Extend the existing iOS 27.1 iPhone Duo selection rule to Xcode RC build
27A9275, alongside beta build 27A9269. The RC runtime has the same device
restriction; retain the existing selection behavior for other versions.

These refinements address the independent rubberduck feedback from
Claude Sonnet 5.5 (max), GPT-6.1 Sol (max), and Grok 4.7 (xhigh), especially
trim-aware dependency scope and explicit weak-link/negative coverage.

Validation after the final refinements
--------------------------------------
Complete make all and make install succeeded, including legacy mtouch,
the .NET linker, assembly-preparer, and xharness.

All five targeted iOS native-link regression cases passed: existing None
and Full linking baselines plus LARight, LAPersistedRight, and LAContext
fixtures. A probe of the freshly compiled xharness assemblies verified
both 17.0 minimum targets and current RC iOS/tvOS device selection.

Freshly rebuilt full introspection suites completed successfully:
  iOS 17.0:       42 passed, 0 failed, 2 ignored
  iOS 27.1:       43 passed, 0 failed, 1 ignored
  tvOS 17.0:      41 passed, 0 failed, 2 ignored
  tvOS 27.0:      42 passed, 0 failed, 1 ignored
  macOS:          33 passed, 0 failed, 1 ignored
  Mac Catalyst:   40 passed, 0 failed, 3 ignored

These are completed NUnit summaries, not inferred launcher success:
241 passed, zero failed/inconclusive, and 10 existing ignored tests across
six configurations. Temporary validation simulators were removed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 09f69be7-9ee7-4614-99c1-1bb410e8d4a5
@dalexsoto
dalexsoto requested a review from rolfbjarne as a code owner October 16, 2026 01:21
Copilot AI balanced review requested due to automatic review settings October 16, 2026 01:21
@dalexsoto dalexsoto added the ready-to-review This PR is ready to review/merge. label Oct 16, 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.

🔵 Needs a closer look

New native bindings and framework-loading behavior need Xcode 27.1 platform validation and final human review.

0 open findings

What changed in this PR

Integrates Xcode 27.1 support into the .NET Apple-platform release branch, including new iOS bindings and compatibility updates.

Changes:

  • Updates Xcode, iOS SDK, package, and simulator versions.
  • Adds UIKit and camera APIs introduced in iOS 27.1.
  • Adjusts framework linking, simulator selection, and regression tests.
File Description
tools/​common/​SdkVersions.cs Updates SDK and simulator version constants.
tools/​common/​Frameworks.cs Weak-links authentication UI when LARight is retained.
tests/​xharness/​SimulatorLoaderFactory.cs Selects devices using the Xcode build version.
tests/​xharness/​Jenkins/​Jenkins.cs Passes Xcode location to simulator selection.
tests/​introspection/​iOSApiSelectorTest.cs Skips selectors missing from 17.0 simulators.
tests/​introspection/​ApiSimulatorAvailabilityTest.cs Applies shared simulator field exclusions.
tests/​introspection/​ApiFieldTest.cs Applies shared field exclusions.
tests/​introspection/​ApiBaseTest.cs Centralizes missing simulator field handling.
tests/​dotnet/​UnitTests/​ProjectTest.cs Tests authentication UI framework linking.
tests/​dotnet/​MySimpleApp/​shared.csproj Supports test-specific compilation constants.
tests/​dotnet/​MySimpleApp/​AppDelegate.cs Adds authentication type-retention scenarios.
tests/​cecil-tests/​Documentation.KnownFailures.txt Updates documentation exceptions for new APIs.
src/​UIKit/​UIEnums.cs Adds iOS 27.1 enums and scene role.
src/​uikit.cs Adds arrangement, hinge, and related UIKit bindings.
src/​avkit.cs Adds camera descriptor and direction bindings.
src/​avfoundation.cs Adds inner and outer camera types.
Make.versions Updates the iOS package platform version.
Make.config Updates Xcode provisioning and simulator settings.
builds/​Versions-iOS.plist.in Registers iOS 27.1 platform support.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@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.

Capture the certificate-chain policy result, then reject the certificate and assert the expected request rejection. Both OCSP policy expectations remain covered without depending on badssl completing the TLS/HTTP exchange after the callback.

Keep handler ownership outside the retry loop so disposing a client does not dispose the handler before a subsequent attempt.

Changes generated with GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 69eb257e-a166-4169-ad30-77d96b4ca1dd
Copilot AI balanced review requested due to automatic review settings October 16, 2026 12:54

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.

🔵 Needs a closer look

New native bindings and SDK-dependent linker and simulator behavior require Xcode 27.1 validation and human review before approval.

0 open findings

🧠 Review effort: Balanced

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

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

✅ API diff vs stable

NET (empty diffs)

Pipeline on Agent
Hash: c035d869f0561634a81ddc66ca24077288f695f2 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #c035d86] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 200 tests passed 🎉

Tests counts

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

macOS tests

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

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: c035d869f0561634a81ddc66ca24077288f695f2 [PR build]

@rolfbjarne rolfbjarne 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 found a few issues in #26894, but approving this to speed things up - but any additional changes in #26894 should eventually be backported to this branch too.

@dalexsoto
dalexsoto merged commit d2bcb08 into release/10.0.1xx Oct 16, 2026
56 checks passed
@dalexsoto
dalexsoto deleted the dev/alex/xc271 branch October 16, 2026 16:39
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