Skip to content

[tests] Cover NSCoding generic registrar signatures. Fixes #21256 - #26499

Open
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/issue-21256-nscoding-linker-cache
Open

[tests] Cover NSCoding generic registrar signatures. Fixes #21256#26499
rolfbjarne wants to merge 1 commit into
mainfrom
dev/rolf/issue-21256-nscoding-linker-cache

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

[tests] Cover NSCoding generic registrar signatures. Fixes #21256

Fixes the issue where NSCoding generic bindings cause linker-cache compile errors in device builds.

Adds registrar binding coverage for NSDictionary<NSString, NSCoding> method and property signatures.

Fixes #21256.

🤖 Pull request created by Copilot

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 28, 2026 18:45
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner August 28, 2026 18:45

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.

Pull request overview

This PR updates the bindings-test fixture bindings to add registrar coverage for NSDictionary<NSString, NSCoding> in both method and property signatures, targeting the device-build registrar/header generation failure described in #21256.

Changes:

  • Add NSDictionary<NSString, NSCoding> getter/setter method signatures to the registrar test interface.
  • Add a NSDictionary<NSString, NSCoding> property to broaden coverage of generic NSCoding dictionary signatures.
Suppressed comments (1)

tests/bindings-test/ApiDefinition.cs:261

  • ⚠️ The new NSCoding dictionary property is currently non-nullable; the real-world signature in #21256 is nullable, and other test properties here are marked [NullAllowed] when they can be nil. Marking this one [NullAllowed] would better cover the problematic registrar output.
		[Export ("nscodingSessionDictionary")]
		NSDictionary<NSString, NSCoding> NSCodingSessionDictionary { get; set; }

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

Comment on lines +254 to +258
[Export ("nscodingSessionOptions")]
NSDictionary<NSString, NSCoding> GetNSCodingSessionOptions ();

[Export ("setNscodingSessionOptions:")]
void SetNSCodingSessionOptions (NSDictionary<NSString, NSCoding> value);
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 20c7545a591c06495719225cc35e7fbbc8972980 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #20c7545] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 62 tests failed, 138 tests passed.

Failures

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.DotNetProjectTest.PublishAotMonoTouchTest_NoIL2009...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...

Html Report (VSDrops) Download

❌ dotnettests tests (MacCatalyst)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.DotNetProjectTest.PublishAotMonoTouchTest_NoIL2009...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...

Html Report (VSDrops) Download

❌ dotnettests tests (macOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.DotNetProjectTest.PublishAotMonoTouchTest_NoIL2009...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...

Html Report (VSDrops) Download

❌ dotnettests tests (tvOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.DotNetProjectTest.PublishAotMonoTouchTest_NoIL2009...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.400-...

Html Report (VSDrops) Download

❌ linker tests (MacCatalyst)

3 tests failed, 12 tests passed.

Failed tests

  • link sdk/Mac Catalyst/Release: BuildFailure
  • link all/Mac Catalyst/Release: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • trimmode link/Mac Catalyst/Release: BuildFailure

Html Report (VSDrops) Download

❌ linker tests (macOS)

7 tests failed, 14 tests passed.

Failed tests

  • link sdk/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link sdk/macOS/Release: BuildFailure
  • link sdk/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • link all/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • link all/macOS/Release: BuildFailure
  • link all/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • trimmode link/macOS/Release: BuildFailure

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

8 tests failed, 11 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Debug (static registrar): BuildFailure
  • monotouch-test/iOS - simulator/Release (all optimizations): BuildFailure
  • monotouch-test/iOS - simulator/Release (NativeAOT): BuildFailure
  • monotouch-test/iOS - simulator/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/iOS - simulator/Debug (managed static registrar): BuildFailure
  • monotouch-test/iOS - simulator/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (strict inline Class.GetHandle): BuildFailure
  • monotouch-test/iOS - simulator/Release (NativeAOT, .NET 11 defaults): BuildFailure

Html Report (VSDrops) Download

❌ monotouch tests (MacCatalyst)

14 tests failed, 4 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Release (link sdk): BuildFailure
  • monotouch-test/Mac Catalyst/Release (link all): BuildFailure
  • monotouch-test/Mac Catalyst/Debug (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (static registrar): BuildFailure
  • monotouch-test/Mac Catalyst/Release (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (managed static registrar, all optimizations): BuildFailure
  • monotouch-test/Mac Catalyst/Release (NativeAOT): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (trimmable static registrar, NativeAOT): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (interpreter): BuildFailure
  • monotouch-test/Mac Catalyst/Release (compat inline dlfcn): BuildFailure
  • monotouch-test/Mac Catalyst/Release (strict inline dlfcn, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (macOS)

18 tests failed, 3 tests passed.

Failed tests

  • monotouch-test/macOS/Release (link sdk): BuildFailure
  • monotouch-test/macOS/Release (link all): BuildFailure
  • monotouch-test/macOS/Debug (PrepareAssemblies, Trimmable Static Registrar, link sdk): BuildFailure
  • monotouch-test/macOS/Debug (managed static registrar): BuildFailure
  • monotouch-test/macOS/Debug (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (static registrar): BuildFailure
  • monotouch-test/macOS/Release (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar, all optimizations): BuildFailure
  • monotouch-test/macOS/Release (NativeAOT): BuildFailure
  • monotouch-test/macOS/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/macOS/Release (static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (compat inline dlfcn): BuildFailure
  • monotouch-test/macOS/Release (strict inline dlfcn, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

8 tests failed, 11 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Debug (static registrar): BuildFailure
  • monotouch-test/tvOS - simulator/Release (all optimizations): BuildFailure
  • monotouch-test/tvOS - simulator/Release (NativeAOT): BuildFailure
  • monotouch-test/tvOS - simulator/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (managed static registrar): BuildFailure
  • monotouch-test/tvOS - simulator/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Release (strict inline Class.GetHandle): BuildFailure
  • monotouch-test/tvOS - simulator/Release (NativeAOT, .NET 11 defaults): BuildFailure

Html Report (VSDrops) Download

❌ Tests on macOS Tahoe (26) tests

🔥 Failed catastrophically on VSTS: test results - mac_tahoe (no summary found).

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): 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 (tvOS): All 15 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 Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ 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

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: 20c7545a591c06495719225cc35e7fbbc8972980 [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NSCoding in iOS binding causes linker-cache compile errors

3 participants