Repository navigation
[ci] Use the agent image's pinned Xcode for internal macOS jobs - #40542
Conversation
…path (APT2260) (#40406) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change Build infrastructure only; no product or test code changes. **Symptom.** Windows `Pack` (and occasionally `Build`) jobs fail intermittently with `APT2260` in `Controls.Xaml` `net11.0-android37.0` `Aapt2Link`: `style attribute 'attr/colorPrimary' not found` and other Material attributes. Recent examples are net11 maui-pr [1688582](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1688582) and candidate maui-pr [1688577](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1688577). There have been 6 Pack and 2 Build Windows failures since 15 Nov, across branches. **Root cause.** `eng/Build.props` restores `Microsoft.Maui.BuildTasks.slnf` with `BuildTaskOnlyBuild=true` first, then the full solution filter, in the same MSBuild process: 1. Under CI, `BuildTaskOnlyBuild=true` disables the all-TFM group in `Directory.Build.props`. The first restore therefore writes a reduced `artifacts/obj/<project>/<project>.csproj.nuget.g.props/targets`, with import groups only for `netstandard2.0`, `netstandard2.1` and `net11.0`. 2. The full restore's evaluations parse those same files into the in-process `ProjectRootElementCache`, then rewrite them with all TFMs. 3. That cache does not revalidate timestamps: it is created with `autoReloadFromDisk: false`, keeps 200 strong MRU entries and holds the rest weakly. Later build evaluations can reuse the stale reduced XML, so platform TFMs lose their `buildTransitive` package imports, including the Material `AndroidAarLibrary` items. That produces `APT2260`. Whether the stale entry survives depends on cache eviction and GC, which is why the failure is intermittent. CI binlogs show this directly. In failing build 1688582, the build-phase evaluations of `Controls.Xaml` (ios/android/windows), `Controls.Core` (ios/windows) and `Graphics` (android/windows) have zero package imports from the `nuget.g.targets`. Passing net11 build [1687936](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1687936) has the normal import counts. #39779 serialized the two restores (`RestoreInParallel=false`) but they still shared these generated files. #40206 worked around the same mechanism for `Controls.Core` with explicit package references. **Fix.** For the build-task restore only, `Directory.Build.props` sets `MSBuildProjectExtensionsPath` to `$(BaseIntermediateOutputPath)buildtasks\`, so that restore writes `nuget.g.*`, `project.assets.json` and dgspec files under `artifacts/obj/<project>/buildtasks/`. The full restore and build keep the default `artifacts/obj/<project>/` path, and the full restore's evaluations never read the reduced files. Arcade's `ProjectLayout.props` sets only `BaseIntermediateOutputPath`, and `Microsoft.Common.props` defaults `MSBuildProjectExtensionsPath` after importing `Directory.Build.props`, so this is the supported place to set it. Nothing in the repo reads these paths directly. Other `BuildTaskOnlyBuild` callers (`eng/cake/dotnet.cake`, `eng/pipelines/arcade/setup-test-env.yml`) restore before every later build, so they also stop overwriting the full assets. The comment in `eng/Build.props` is updated to match. Rejected alternatives: - `MSBUILDNOINPROCNODE=1`: pipeline-wide behaviour change. - More explicit package references, as in #40206: a per-project workaround that doesn't remove the shared state. - Disabling project-extension imports: unsafe. ### Validation All runs used SDK 11.0.100 with `dotnet msbuild -m:1 -nodeReuse:false`. **Minimal standalone repro.** A local package with `build/net10.0` targets, consumed by a library whose TFMs shrink from `net11.0;net10.0` to `net11.0` under `BuildTaskOnlyBuild=true`. The driver runs the reduced restore, then the full restore, then reads the package marker for `net10.0`: | Run | Result | | --- | --- | | Baseline | marker missing (red) | | Fix | marker present (green) | | Fix reverted | marker missing (red) | | Fix restored | marker present (green) | | Control: baseline with `MSBUILDNOINPROCNODE=1` | marker present (green): the in-proc XML cache is the mechanism | **Repo-level repro, in Arcade's order.** The driver runs a `BuildTasks.slnf` restore with `BuildTaskOnlyBuild=true`, then a full `Controls.Xaml` restore, then an evaluation of `Controls.Xaml` `net11.0-android37.0` that counts `AndroidAarLibrary` items. All runs used `CI=true -p:IncludeMacOSTargetFrameworks=false`. `MSBUILDPROJECTROOTELEMENTCACHESIZE=100000` stops strong-cache eviction, which makes the CI intermittency deterministic: | Run | AndroidAarLibrary (all / Material) | Package imports in the build-phase android evaluation | | --- | --- | --- | | Baseline | 0 / 0 (red) | 31: the stale reduced `nuget.g.targets` | | Fix | 69 / 1 (green) | 133 | | Fix reverted | 0 / 0 (red) | — | | Fix restored | 69 / 1 (green) | — | With default cache settings the baseline was green locally (69/1), which is consistent with the eviction-dependent intermittency seen in CI. **Other checks.** - Evaluation with `BuildTaskOnlyBuild=true`: `MSBuildProjectExtensionsPath`, `RestoreOutputPath` and `ProjectAssetsFile` point at `artifacts/obj/Controls.Xaml/buildtasks/`. Without it they stay at `artifacts/obj/Controls.Xaml/`. - `CI=true dotnet build Microsoft.Maui.BuildTasks.slnf -c Debug -p:BuildTaskOnlyBuild=true -p:IncludeMacOSTargetFrameworks=false`: build succeeded, 0 warnings. All 12 restored projects wrote their assets under `artifacts/obj/<project>/buildtasks/`. The CI proof will be a Pack run's Windows binlog: the full restore's evaluations should no longer import a normal-path `nuget.g.targets` written by the build-task restore. ### Issues Fixed Intermittent Windows Pack/Build `APT2260` failures in maui-pr. No issue is filed; this was found while triaging #40116 CI. Fixes # Co-authored-by: Copilot App <223556219+Copilot@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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change Test-only. On Android, `App.DismissKeyboard()` calls Appium's `hideKeyboard`. That sends ESC, and if the IME is still reported as shown about a second later, it also sends BACK. When the IME hide takes longer than that, BACK closes the test page's `MainActivity` and the launcher comes to the front. The next element lookup then throws a `NullReferenceException` or times out. This is the same mechanism as #40361 (Issue35119). There, BACK cancelled a prompt. The fix replaces the three Android `DismissKeyboard()` calls in `Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`, `SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and `Issue28986.SafeAreaPerEdgeValidation` with a helper: - It waits for the keyboard to show. - It sends only ESC, which the visible IME consumes. - It asserts that the keyboard hides. iOS still calls `DismissKeyboard()`. No assertions, tolerances or baselines change. The keyboard tests in `Issue28986_SafeAreaBorderOrientation` are excluded on Android (`TEST_FAILS_ON_ANDROID`), so they are unchanged. **CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836): - The original attempt hit an NRE in `Tap("GridResetAllButton")` at line 156, right after `DismissKeyboard()` and a passing `WaitForKeyboardToHide()`. - Logcat shows ESC to Gboard, then the app's `onRequestHide`, then `onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the app task brings the launcher to the front. - The same NRE@156 signature appears in UI builds 1687709 and 1687330. **Local causal validation.** Android 16 (API 36) emulator, `net11` Material3 HostApp APK from UI build 1688901, filter `Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation` (3 tests per run): | Phase | Runs | Failed tests | | --- | --- | --- | | Baseline (`net11`) | 3 | 9/9 | | Fixed | 3 | 1/9 | | Fix reverted | 3 | 6/9 | | Fix restored | 3 | 1/9 | - Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156` (4), timeout at line 105 (4), a failure at line 126 (1), and timeout in `Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`, then a mid-test `Transition CLOSE` of the uitests task. The app relaunches only after the timeout. - Both fixed-run failures are in `Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is the earlier "keyboard shown" assertion, before any hide. Logcat shows no `onRequestShow` in those runs, so the keyboard was never requested. This is a separate, pre-hide failure that this PR doesn't address. ### Issues Fixed Fixes CI flakiness in `Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`, `Issue28986_ContentPage.SafeAreaPerEdgeValidation` and `Issue28986.SafeAreaPerEdgeValidation` on Android. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This pull request updates the following dependencies [marker]: <> (Begin:fc4a0e63-cc9b-414d-9375-11dd045dcfa9) ## From https://github.com/dotnet/android - **Subscription**: [fc4a0e63-cc9b-414d-9375-11dd045dcfa9](https://maestro.dot.net/subscriptions?search=fc4a0e63-cc9b-414d-9375-11dd045dcfa9) - **Build**: [11.0.1xx-d644ae60c9c7cff27a9813663298c3aa642534a3-1](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=16070009) ([342149](https://maestro.dot.net/channel/8298/github:dotnet:android/build/342149)) - **Date Produced**: November 18, 2026 9:02:56 PM UTC - **Commit**: [d644ae60c9c7cff27a9813663298c3aa642534a3](dotnet/android@d644ae6) - **Branch**: [release/11.0.1xx](https://github.com/dotnet/android/tree/release/11.0.1xx) [DependencyUpdate]: <> (Begin) - **Dependency Updates**: - From [37.2.40 to 37.2.43][1] - Microsoft.Android.Sdk.Windows [1]: dotnet/android@37b3691...d644ae6 [DependencyUpdate]: <> (End) [marker]: <> (End:fc4a0e63-cc9b-414d-9375-11dd045dcfa9) [marker]: <> (Begin:0340b3ac-0154-4d65-98b8-f534ebc24108) ## From https://github.com/dotnet/dotnet - **Subscription**: [0340b3ac-0154-4d65-98b8-f534ebc24108](https://maestro.dot.net/subscriptions?search=0340b3ac-0154-4d65-98b8-f534ebc24108) - **Build**: [20261117.5](https://dev.azure.com/dnceng/internal/_build/results?buildId=3138553) ([342028](https://maestro.dot.net/channel/8298/github:dotnet:dotnet/build/342028)) - **Date Produced**: November 18, 2026 7:22:18 AM UTC - **Commit**: [81e781b0429cbad5d1984bce95e451bba6aeab0e](dotnet/dotnet@81e781b) - **Branch**: [release/11.0.1xx](https://github.com/dotnet/dotnet/tree/release/11.0.1xx) [DependencyUpdate]: <> (Begin) - **Dependency Updates**: - From [11.0.1 to 11.0.1][2] - Microsoft.AspNetCore.Authentication.Facebook - Microsoft.AspNetCore.Authentication.Google - Microsoft.AspNetCore.Authentication.MicrosoftAccount - Microsoft.AspNetCore.Authorization - Microsoft.AspNetCore.Components - Microsoft.AspNetCore.Components.Analyzers - Microsoft.AspNetCore.Components.Forms - Microsoft.AspNetCore.Components.Web - Microsoft.AspNetCore.Components.WebAssembly - Microsoft.AspNetCore.Components.WebAssembly.Server - Microsoft.AspNetCore.Components.WebView - Microsoft.AspNetCore.Metadata - Microsoft.Extensions.Configuration - Microsoft.Extensions.Configuration.Abstractions - Microsoft.Extensions.Configuration.Json - Microsoft.Extensions.DependencyInjection - Microsoft.Extensions.DependencyInjection.Abstractions - Microsoft.Extensions.FileProviders.Abstractions - Microsoft.Extensions.Hosting.Abstractions - Microsoft.Extensions.Logging - Microsoft.Extensions.Logging.Abstractions - Microsoft.Extensions.Logging.Console - Microsoft.Extensions.Logging.Debug - Microsoft.Extensions.Primitives - Microsoft.JSInterop - Microsoft.NETCore.App.Ref - From [11.0.0-beta.26566.116 to 11.0.0-beta.26567.105][2] - Microsoft.DotNet.Arcade.Sdk - Microsoft.DotNet.Build.Tasks.Feed - Microsoft.DotNet.Build.Tasks.Installers - Microsoft.DotNet.Build.Tasks.Workloads - Microsoft.DotNet.Helix.JobMonitor - Microsoft.DotNet.Helix.Sdk - Microsoft.DotNet.RemoteExecutor - Microsoft.DotNet.SharedFramework.Sdk - Microsoft.DotNet.XUnitExtensions - From [11.0.101-servicing.26566.116 to 11.0.101-servicing.26567.105][2] - Microsoft.NET.Sdk [2]: dotnet/dotnet@f41eb11...81e781b [DependencyUpdate]: <> (End) [marker]: <> (End:0340b3ac-0154-4d65-98b8-f534ebc24108) --------- Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…r/DragLeave (#40441) <!-- 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! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change On iOS, `DragEventArgs.GetPosition()` can throw a `NullReferenceException` inside a `DragOver` or `DragLeave` handler. The exception crashes the app. **CI evidence.** The `DropEventCoordinates` UI test crashed the HostApp on both attempts on the iOS CoreCLR lane of SR2 candidate #40116 (maui-pr-uitests [1690394](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1690394), iOS latest Editor..Fr job). The job's `.ips` reports show SIGABRT from `xamarin_process_managed_exception` under `-[UIDropInteraction _dragDestinationGestureStateChanged:]`. The logarchive shows the managed exception: ``` System.NullReferenceException at DragAndDropDelegate.CalculatePosition(IElement, WeakReference, WeakReference) at DragAndDropBetweenLayouts.OnDragOver(...) // HostApp calls e.GetPosition(...) at DragAndDropDelegate.<HandleDragOver>... at DragAndDropDelegate.SendEventArgs(...) at DragAndDropDelegate.HandleDragOver(...) at DragAndDropDelegate.SessionDidUpdate(...) ``` **Root cause.** - `SessionDidUpdate` and `SessionDidExit` pass `session.LocalDragSession`, a transient managed wrapper of the native local drag session, into `HandleDragOver` and `HandleDragLeave`. - Those methods put only a `WeakReference` to it in the `GetPosition` callback, and nothing else on the path keeps it alive: `PlatformDragEventArgs` holds the outer `IUIDropSession`, not the local drag session. - A GC while the user's handler is running can therefore collect the wrapper. `CalculatePosition` then calls `LocationInView` on a null session. - Separately, `HandleDragOver` built a weak reference even when `LocalDragSession` is null (a drag from another app), so `GetPosition` always threw in that case. `HandleDragLeave` and `HandleDrop` already return null there. The weak references date from 2023, and the code is identical on `net11`, the candidate and `main`. This is a latent bug that the CoreCLR lane's GC timing exposed, not a candidate regression. **Fix** (`DragAndDropDelegate.cs`, iOS/Mac Catalyst): - `HandleDragOver` and `HandleDragLeave` call `GC.KeepAlive(session)` after dispatching to the recognizers. The session stays alive while handlers can synchronously call `GetPosition`, and the event args still don't hold it strongly. - `HandleDragOver` uses a null `sessionRef` when there is no local drag session, matching `HandleDragLeave` and `HandleDrop`. - `CalculatePosition` returns `null` when the session reference is missing or its target has already been collected, instead of dereferencing null. This covers a `GetPosition` call made after the handler returns. **Tests** (`DragAndDropTests.iOS.cs`, `Gesture` category): - `DragPositionIsAvailableAfterGarbageCollectionDuringHandler(dragLeave: false/true)`: a fake drop session returns a fresh local drag session wrapper each time, the handler forces a full GC and then calls `GetPosition`, and the test asserts the fake session's location. - `DragOverPositionIsNullWithoutLocalDragSession`: with no local drag session, `GetPosition` in `DragOver` returns `null`. **Validation** (iOS 18.5 simulator, Release, CoreCLR, the same runtime as the failing CI lane): | Command | Result | | --- | --- | | `pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform ios -TestFilter "Category=Gesture" -DeviceUdid <iOS 18.5 sim> -SkipXcodeVersionCheck` with only the new tests (no fix) | **Failed**: 45 passed, 3 failed. All three new cases throw `NullReferenceException` at `DragAndDropDelegate.CalculatePosition`, the same frame as the CI crash. | | Same command with the fix | **Passed**: 48 passed, 0 failed | | `dotnet format whitespace --folder --include <changed files> --verify-no-changes` | Passed | The UI test itself was not rerun locally, because its crash depends on when a GC happens. ### Issues Fixed No existing issue; found while investigating SR2 candidate #40116 CI. Searched for related issues and PRs and found no duplicate. #28416/#28417 is an unrelated Mac Catalyst `DragAndDropDelegate` NRE. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
GoldenGate now provides Xcode 27.0, 27.1 and 27.2. Installing the 27.2.0 Universal Package by default made internal Build macOS, Samples macOS and RunOniOS jobs fail: the iOS SDK (27.0.12230) requires Xcode 27.0. Make the package opt-in so internal jobs select $(XCODE) like public CI. 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 -- 40542Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40542" |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 7661b7f.
|
@dalexsoto stamp |
|
/review run-tests |
Selected UI Tests
🧪 Test selection — click to expandℹ️ The AI found no UI-test-relevant changes, so no GPT-6.2 Sol: No UI tests are needed: the PR changes internal Xcode provisioning, while the PR UI dispatch uses target-branch pipeline templates. 🧪 Running — nothingNo UI tests run for this PR. ⏭️ Skipped — 77 categories, 4 platformsPlatforms not run: Android, iOS, MacCatalyst, Windows Each skipped platform and category is listed as a Skipped 🤖 Why these tests — AI rationale (GPT-6.2 Sol + Claude Opus 5.5)Each model chose independently; every test that runs was selected by at least one of them.
GPT-6.2 Sol — No UI tests are needed: the PR changes internal Xcode provisioning, while the PR UI dispatch uses target-branch pipeline templates.
Claude Opus 5.5 — CI-only change defaulting installXcodePackage to false for internal macOS jobs plus a docs update; no UI tests needed.
Generated by /review run-tests. A targeted run is a fast signal, not full-suite certification. |
This comment has been minimized.
This comment has been minimized.
| } | ||
|
|
||
| static internal Point? CalculatePosition(IElement relativeTo, WeakReference viewHandlerRef, WeakReference sessionRef) | ||
| { |
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The collected-target branch has no discriminating regression test. Both GC cases call GetPosition during dispatch, when GC.KeepAlive roots the local session; the no-local-session case supplies a null sessionRef. Restoring the old null-reference-only guard while keeping the other fixes would therefore satisfy these cases but reintroduce NullReferenceException when retained DragEventArgs.GetPosition is called after dispatch and session collection. Add an iOS/MacCatalyst case that retains the args, lets dispatch return, verifies the weak session target is collected, and asserts GetPosition returns null.
Retain package feeds without adding another duplicate and preserve the current XHarness dependency update alongside the Xcode opt-in configuration. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Resolved the conflict with Kept the package feeds without introducing another duplicate entry, and retained the target’s matching XHarness versions and dependency metadata. The agent-image Xcode selection and opt-in Xcode package configuration remain unchanged. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 1c79bca.
…et#40542) <!-- 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! ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change dotnet#40216 made internal (dnceng `internal`) macOS jobs install and force-select the Xcode **27.2.0** Universal Package, because `ACES_VM_SharedPool_GoldenGate` only had Xcode 27.0 at the time. The image now ships Xcode 27.0, 27.1 and 27.2. The iOS/Mac Catalyst SDK on `net11`/`main` (27.0.12230) requires exactly Xcode 27.0, so the forced 27.2 breaks the internal `dotnet-maui-build` pipeline (1536). For example, main build [3143701](https://dev.azure.com/dnceng/internal/_build/results?buildId=3143701) failed: - **Build macOS (Debug/Release)** and **Samples macOS** (8 of 10 tests): `This version of .NET for iOS (27.0.12230) requires Xcode 27.0. The current version of Xcode is 27.2.` - **RunOniOS_MauiDebug_CoreCLR**: `Simulator failed to fully boot within timeout. Target: ios-simulator-64_27.2`. Samples macOS fails the same way in every recent internal main run (3143701, 3143132, 3141634, 3140674). This PR: - `eng/pipelines/common/provision.yml`, `eng/pipelines/arcade/setup-test-env.yml`: `installXcodePackage` now defaults to `false`. Internal jobs select the image's `$(XCODE)` (27.0) exactly like public CI. The package path stays available as an opt-in. - `docs/DevelopmentTips.md`: documents the behavior. Side benefit: it removes the package download and install (about 1 minute) from each internal macOS job. ### Validation - YAML parse of both changed templates: passed. - Internal `dotnet-maui-build` run on a mirror of this branch: [build 3144121](https://dev.azure.com/dnceng/internal/_build/results?buildId=3144121): all macOS jobs **succeeded** — Build macOS (Debug/Release), Samples macOS, Pack macOS, Blazor/AOT/MultiProject macOS, and all 10 RunOniOS lanes (previously failing in main build 3143701). ### Issues Fixed Fixes internal `dotnet-maui-build` macOS failures introduced by dotnet#40216 after the GoldenGate Xcode 27.2 image rollout. ---------
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!
Target Branch
mainnet11, for reviewFor .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into
net11; agents must not retarget or merge.Description of Change
#40216 made internal (dnceng
internal) macOS jobs install and force-select the Xcode 27.2.0 Universal Package, becauseACES_VM_SharedPool_GoldenGateonly had Xcode 27.0 at the time. The image now ships Xcode 27.0, 27.1 and 27.2.The iOS/Mac Catalyst SDK on
net11/main(27.0.12230) requires exactly Xcode 27.0, so the forced 27.2 breaks the internaldotnet-maui-buildpipeline (1536). For example, main build 3143701 failed:This version of .NET for iOS (27.0.12230) requires Xcode 27.0. The current version of Xcode is 27.2.Simulator failed to fully boot within timeout. Target: ios-simulator-64_27.2.Samples macOS fails the same way in every recent internal main run (3143701, 3143132, 3141634, 3140674).
This PR:
eng/pipelines/common/provision.yml,eng/pipelines/arcade/setup-test-env.yml:installXcodePackagenow defaults tofalse. Internal jobs select the image's$(XCODE)(27.0) exactly like public CI. The package path stays available as an opt-in.docs/DevelopmentTips.md: documents the behavior.Side benefit: it removes the package download and install (about 1 minute) from each internal macOS job.
Validation
dotnet-maui-buildrun on a mirror of this branch: build 3144121: all macOS jobs succeeded — Build macOS (Debug/Release), Samples macOS, Pack macOS, Blazor/AOT/MultiProject macOS, and all 10 RunOniOS lanes (previously failing in main build 3143701).Issues Fixed
Fixes internal
dotnet-maui-buildmacOS failures introduced by #40216 after the GoldenGate Xcode 27.2 image rollout.