Repository navigation
[release/10.0.1xx] Merge Xcode 27.1 into release/10.0.1xx - #26892
Conversation
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
There was a problem hiding this comment.
🔵 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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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
|
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 stableNET (empty diffs)Pipeline on Agent |
🚀 [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 macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
No description provided.