[xcode26.2] Merge main into xcode26.2#24318
Conversation
…resilient. (#24243) * If there are any unusable simulator runtimes, delete them all. A frequent failure is when a simulator runtime isn't ready because "Unusable - Other Failure: Duplicate of ...", so hopefully this will solve those problems. * Don't pass -buildVersion to 'xcodebuild -downloadPlatform', Apple's tooling doesn't seem able to handle it correctly and gets confused. * Remove a stray 'sleep 60'.
Always run WriteItemsFromFile locally, as these operations just read/write items from/to an XML file, this is something we don't need to run remotely when building from Windows. This improves the build performance and also fixes some inconsistencies we had were sometimes files were written locally and read remotely (or the other way around). This means we need to adjust any corresponding ReadItemsFromFile calls accordingly. It also allows us to remove the remoting support in WriteItemsFromFile, but we can't remove remoting support for ReadItemsFromFile, because sometimes we have to read files that aren't written with WriteItemsFromFile (they're written by other tasks), and these files will have been written remotely. --------- Co-authored-by: Emanuel Fernandez Dell'Oca <ema@xamarin.com>
…24247) Such as: [FAIL] TrustUsingNewCallback : System.Net.WebException : The SSL connection could not be established, see inner exception. ----> System.Net.Http.HttpRequestException : The SSL connection could not be established, see inner exception. ----> System.IO.IOException : Received an unexpected EOF or 0 bytes from the transport stream. at System.Net.HttpWebRequest.GetResponse() at System.Net.WebClient.GetWebResponse(WebRequest request) at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream) at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at LinkSdk.CryptoTest.TrustUsingNewCallback() in /Users/builder/azdo/_work/1/s/macios/tests/linker/link sdk/CryptoTest.cs:line 53 at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result) at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result) at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) --HttpRequestException at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.InjectNewHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken cancellationToken) at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionWaiter`1.WaitForConnectionAsync(HttpRequestMessage request, HttpConnectionPool pool, Boolean async, CancellationToken requestCancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.Metrics.MetricsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpMessageInvoker.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at System.Net.HttpWebRequest.SendRequest(Boolean async, HttpContent content) at System.Net.HttpWebRequest.HandleResponse(Boolean async) at System.Net.HttpWebRequest.GetResponse() --IOException at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
…mps, but don't. (#24248) Instead of assuming such files have timestamps, actually parse them to make sure. This way we properly end up detecting test failures (lines that start with '[FAIL]').
…ist. Relative links don't work when the check list is copied into an issue.
This is file 5 of 47 files with nullability disabled in Foundation.
Also:
* Obsolete the default constructor (it's not usable anyway), and remove it in XAMCORE_5_0.
* Improve documentation (by Copilot):
* Replace XML include with inline documentation.
* Remove SupportedOSPlatform attributes without version numbers.
* Remove 'To be added.' placeholders.
* Improve XML comments with proper formatting and see cref attributes.
Contributes towards #17285.
It's not needed. Fixes this warning: > warning NU1510: PackageReference System.Collections.Immutable will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
Disable AzDO dependabot.
This pull request updates the following dependencies ## From https://github.com/dotnet/xharness - **Subscription**: [02e03784-16b3-4ced-b02a-3715797fc7da](https://maestro.dot.net/subscriptions?search=02e03784-16b3-4ced-b02a-3715797fc7da) - **Build**: [20251114.3](https://dev.azure.com/dnceng/internal/_build/results?buildId=2839199) ([290941](https://maestro.dot.net/channel/2/github:dotnet:xharness/build/290941)) - **Date Produced**: November 14, 2025 6:47:03 PM UTC - **Commit**: [380f540c98c117d0e47564f48fb3cd670a910825](dotnet/xharness@380f540) - **Branch**: [main](https://github.com/dotnet/xharness/tree/main) - **Dependency Updates**: - From [10.0.0-prerelease.25527.1 to 10.0.0-prerelease.25564.3][1] - Microsoft.DotNet.XHarness.iOS.Shared [1]: dotnet/xharness@b9f51d9...380f540
This pull request updates the following dependencies ## From https://github.com/dotnet/dotnet - **Subscription**: [7bea2f72-36de-4307-8c02-e200db7ccd92](https://maestro.dot.net/subscriptions?search=7bea2f72-36de-4307-8c02-e200db7ccd92) - **Build**: [20251104.4](https://dev.azure.com/dnceng/internal/_build/results?buildId=2831037) ([289521](https://maestro.dot.net/channel/5173/github:dotnet:dotnet/build/289521)) - **Date Produced**: November 4, 2025 7:16:29 PM UTC - **Commit**: [8ee0cc0bbdbacfeb5b7e703909c9731ff75600f1](dotnet/dotnet@8ee0cc0) - **Branch**: [release/10.0.1xx](https://github.com/dotnet/dotnet/tree/release/10.0.1xx) - **Updates**: - From [10.0.0 to 10.0.1][1] - Microsoft.NET.Runtime.MonoTargets.Sdk - Microsoft.NET.ILLink.Tasks - Microsoft.NETCore.App.Ref - From [10.0.0-beta.25531.102 to 10.0.0-beta.25554.104][1] - Microsoft.DotNet.Arcade.Sdk - Microsoft.DotNet.Build.Tasks.Feed - Microsoft.DotNet.SharedFramework.Sdk - From [0.11.5-alpha.25531.102 to 0.11.5-alpha.25554.104][1] - Microsoft.DotNet.Cecil - From [10.0.0-rtm.25531.102 to 10.0.1-servicing.25554.104][1] - Microsoft.NET.ILLink - From [10.0.100-rtm.25531.102 to 10.0.101-servicing.25554.104][1] - Microsoft.NET.Sdk - From [10.0.100 to 10.0.101][1] - Microsoft.TemplateEngine.Authoring.Tasks [1]: dotnet/dotnet@ba86126...8ee0cc0
* Don't test the platform assembly in the simulator. * Only test the platform assembly on the latest OS version. Otherwise test everything. This makes it so that System.Private.CoreLib.dll is tested on all OS versions.
This is file 6 of 47 files with nullability disabled in Foundation. Contributes towards #17285.
This is file 7 of 47 files with nullability disabled in Foundation. * Also improve NSItemProvider documentation (by Copilot): * Remove 'To be added.' placeholders. * Remove SupportedOSPlatform attributes without version numbers. * Improve XML comments with proper formatting and see cref attributes. * Remove unnecessary whitespace in documentation. Contributes towards #17285.
Hopefully fixes:
[FAIL] TrustUsingNewCallback : System.Net.WebException : The operation has timed out.
at System.Net.HttpWebRequest.GetResponse()
at System.Net.WebClient.GetWebResponse(WebRequest request)
at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at LinkSdk.CryptoTest.TrustUsingNewCallback() in /Users/builder/azdo/_work/1/s/macios/tests/linker/link sdk/CryptoTest.cs:line 59
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
This is file 8 of 47 files with nullability disabled in Foundation. Also (by Copilot): * Improve NSUrlRequest documentation and enable nullability. * Remove empty XML comment sections. * Improve return documentation with see cref attributes. * Fix nullability handling in ToString method. * Remove unnecessary whitespace in documentation. Contributes towards #17285. --------- Co-authored-by: GitHub Copilot <noreply@github.com>
This is file 9 of 47 files with nullability disabled in Foundation. Also: * Add comprehensive XML documentation for all public methods. * Use ArgumentNullException.ThrowIfNull for null checks. * Add see cref attributes for types and parameters. * Add exception documentation for ArgumentNullException and ArgumentException. * Use var for local variable declarations. * Add null-suppression operator on attribute.Selector (safe per runtime guarantee). Contributes towards #17285. --------- Co-authored-by: GitHub Copilot <noreply@github.com>
This is file 10 of 47 files with nullability disabled in Foundation. Also: * Remove 'To be added.' placeholders. * Improve XML comments with proper formatting and see cref attributes. * Remove unnecessary whitespace in documentation. * Mark ObjCType property as nullable (Marshal.PtrToStringAnsi can return null). * Update property documentation to use 'Gets' instead of 'Returns'. * Add proper parameter and return descriptions. * Remove the NO_SYSTEM_DRAWING condition, NO_SYSTEM_DRAWING is not defined anymore. Contributes towards #17285.
This pull request updates the following dependencies ## From https://github.com/dotnet/xharness - **Subscription**: [02e03784-16b3-4ced-b02a-3715797fc7da](https://maestro.dot.net/subscriptions?search=02e03784-16b3-4ced-b02a-3715797fc7da) - **Build**: [20251118.2](https://dev.azure.com/dnceng/internal/_build/results?buildId=2841813) ([291246](https://maestro.dot.net/channel/2/github:dotnet:xharness/build/291246)) - **Date Produced**: November 18, 2025 12:52:14 PM UTC - **Commit**: [b7f8a305810da296dd36fbb4debfb1e268ba72b8](dotnet/xharness@b7f8a30) - **Branch**: [main](https://github.com/dotnet/xharness/tree/main) - **Dependency Updates**: - From [10.0.0-prerelease.25564.3 to 10.0.0-prerelease.25568.2][1] - Microsoft.DotNet.XHarness.iOS.Shared [1]: dotnet/xharness@380f540...b7f8a30
This pull request updates the following dependencies ## From https://github.com/dotnet/dotnet - **Subscription**: [7bea2f72-36de-4307-8c02-e200db7ccd92](https://maestro.dot.net/subscriptions?search=7bea2f72-36de-4307-8c02-e200db7ccd92) - **Build**: [20251118.2](https://dev.azure.com/dnceng/internal/_build/results?buildId=2841713) ([291265](https://maestro.dot.net/channel/5173/github:dotnet:dotnet/build/291265)) - **Date Produced**: November 18, 2025 3:43:49 PM UTC - **Commit**: [115a29577547ce136b754d96d2ebfb184595a923](dotnet/dotnet@115a295) - **Branch**: [release/10.0.1xx](https://github.com/dotnet/dotnet/tree/release/10.0.1xx) - **Dependency Updates**: - From [10.0.1 to 10.0.1][1] - Microsoft.NET.Runtime.MonoTargets.Sdk - Microsoft.NET.ILLink.Tasks - Microsoft.NETCore.App.Ref - From [10.0.0-beta.25563.104 to 10.0.0-beta.25568.102][1] - Microsoft.DotNet.Arcade.Sdk - Microsoft.DotNet.Build.Tasks.Feed - Microsoft.DotNet.SharedFramework.Sdk - From [0.11.5-alpha.25563.104 to 0.11.5-alpha.25568.102][1] - Microsoft.DotNet.Cecil - From [10.0.1-servicing.25563.104 to 10.0.1-servicing.25568.102][1] - Microsoft.NET.ILLink - From [10.0.101-servicing.25563.104 to 10.0.101-servicing.25568.102][1] - Microsoft.NET.Sdk - From [10.0.101 to 10.0.101][1] - Microsoft.TemplateEngine.Authoring.Tasks [1]: dotnet/dotnet@93970af...115a295
This is file 15 of 47 files with nullability disabled in Foundation. Changes: - Enabled nullable reference types - Made SecIdentity property return SecIdentity? (nullable) since it can return null when Identity handle is IntPtr.Zero - Replaced "To be added." XML documentation with proper documentation for all members - Added see cref attributes for better cross-referencing - Removed unnecessary whitespace in XML comments - Replaced manual null checks with ArgumentNullException.ThrowIfNull for cleaner code - Added returns documentation for all methods that were missing it Contributes towards #17285.
Includes changes to allow USB debugging. More details: https://devdiv.visualstudio.com/DevDiv/_git/macios-mlaunch/pullrequest/687782 Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This is file 11 of 47 files with nullability disabled in Foundation. Changes: - Enabled nullable reference types, and fixed the code accordingly - Added XML documentation comments for all public methods - Removed unnecessary whitespace in comments Contributes towards #17285.
This pull request updates the following dependencies ## From https://github.com/dotnet/dotnet - **Subscription**: [7bea2f72-36de-4307-8c02-e200db7ccd92](https://maestro.dot.net/subscriptions?search=7bea2f72-36de-4307-8c02-e200db7ccd92) - **Build**: [20251119.4](https://dev.azure.com/dnceng/internal/_build/results?buildId=2842765) ([291507](https://maestro.dot.net/channel/5173/github:dotnet:dotnet/build/291507)) - **Date Produced**: November 19, 2025 8:36:07 PM UTC - **Commit**: [4090eb301f5e5db13760aa57eeb32b516c42c56b](dotnet/dotnet@4090eb3) - **Branch**: [release/10.0.1xx](https://github.com/dotnet/dotnet/tree/release/10.0.1xx) - **Dependency Updates**: - From [10.0.1 to 10.0.1][1] - Microsoft.NET.Runtime.MonoTargets.Sdk - Microsoft.NET.ILLink.Tasks - Microsoft.NETCore.App.Ref - From [10.0.0-beta.25568.102 to 10.0.0-beta.25569.104][1] - Microsoft.DotNet.Arcade.Sdk - Microsoft.DotNet.Build.Tasks.Feed - Microsoft.DotNet.SharedFramework.Sdk - From [0.11.5-alpha.25568.102 to 0.11.5-alpha.25569.104][1] - Microsoft.DotNet.Cecil - From [10.0.1-servicing.25568.102 to 10.0.1-servicing.25569.104][1] - Microsoft.NET.ILLink - From [10.0.101-servicing.25568.102 to 10.0.101-servicing.25569.104][1] - Microsoft.NET.Sdk - From [10.0.101 to 10.0.101][1] - Microsoft.TemplateEngine.Authoring.Tasks [1]: dotnet/dotnet@115a295...4090eb3
…n there's a pipe character there. (#24296)
This pull request updates the following dependencies ## From https://github.com/dotnet/xharness - **Subscription**: [02e03784-16b3-4ced-b02a-3715797fc7da](https://maestro.dot.net/subscriptions?search=02e03784-16b3-4ced-b02a-3715797fc7da) - **Build**: [20251119.2](https://dev.azure.com/dnceng/internal/_build/results?buildId=2842819) ([291473](https://maestro.dot.net/channel/2/github:dotnet:xharness/build/291473)) - **Date Produced**: November 19, 2025 4:22:21 PM UTC - **Commit**: [f02363153e30c96ad6e170852b2e272103b71945](dotnet/xharness@f023631) - **Branch**: [main](https://github.com/dotnet/xharness/tree/main) - **Dependency Updates**: - From [10.0.0-prerelease.25568.2 to 11.0.0-prerelease.25569.2][1] - Microsoft.DotNet.XHarness.iOS.Shared [1]: dotnet/xharness@b7f8a30...f023631
These test variations need to go in the shared list of test variations, because they contains conditional compilation symbols that need to be set for referenced projects as well. Also a few other improvements: * Order the test variations identically between the item group with descriptions and the property groups. * Add a sanity check to verify that if a test variation is specified, then something actually happens. * Use 'TrimMode' instead of 'LinkMode'+'MtouchLink' - this avoids forgetting to set either 'LinkMode' or 'MtouchLink'.
This is file 16 of 47 files with nullability disabled in Foundation. Changes: - Enabled nullable reference types - Made indexer return types nullable (NSObject?) since ObjectForKey can return null - Replaced "To be added." XML documentation with proper documentation for all members - Added see cref attributes for better cross-referencing - Removed unnecessary whitespace in XML comments - Added comprehensive documentation for all Set* methods explaining their purpose Contributes towards #17285.
* Fail if a file was added to or removed from the app bundle. * Fail if the set of APIs that survived trimming changed. * Use Assert.Multiple to support multiple failing asserts. * Improve diagnostic output a bit.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #673951c] Build passed (Build packages) ✅Pipeline on Agent |
✅ [PR Build #673951c] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
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.
✅ [CI Build #673951c] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
💻 [CI Build #673951c] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
💻 [CI Build #673951c] Tests on macOS arm64 - Mac Sequoia (15) passed 💻✅ All tests on macOS arm64 - Mac Sequoia (15) passed. Pipeline on Agent |
💻 [CI Build #673951c] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
💻 [CI Build #673951c] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
💻 [CI Build #673951c] Tests on macOS arm64 - Mac Tahoe (26) passed 💻✅ All tests on macOS arm64 - Mac Tahoe (26) passed. Pipeline on Agent |
🚀 [CI Build #673951c] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 119 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
No description provided.