Skip to content

[Bug]: __KVOObserver not emitted #48

Description

@Sevenish

Prerequisites

  • I have searched open and closed issues for duplicates.
  • I am using the latest stable release.

Describe the bug 🐞

Using this iOS in only library using latest nuget version 3.4.0. First the documentation states.:
Install the ReactiveUI.Binding NuGet package. The source generator is automatically included.
This appears not to be correct. Results in no generated binding run time crash.
The ReactiveUI.Bindings.SourceGenerators has to be manually included.
But the main issue after that:
Compilation failes because __KVOObserver is not included in the generated code.

I worked around this by manually adding the helpers classes from Plugins/Observation/KVOObservationPlugin.cs to my project ( classes __KVOObserver, __KVOObservable ). I have no idea whyn these are not emitted in the generated code but with this workaround everything functions as expected

Steps to reproduce

  1. Add both ReactiveUI.Binding and ReactiveUI.Binding.SoureGenerators to a net10.0-ios project
  2. Use BindToWay in a ReactiveUI.ReactiveViewController
  3. Compilation Error in BindTwoWayDispatch.g.cs error CS2046: The Type or namespace name '__KVOObservable<>' could not be found

Reproduction repository

No response

Expected behavior

Compiles without issues. (This works with workaround by manually added the __KVO helpers classes to the project)

Screenshots 🖼️

No response

IDE

Visual Studio Code

.NET version

.NET 10

Target framework(s)

net10.0-ios

Operating system

No response

OS version

No response

Device

No response

ReactiveUI version

23.2.28

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions