[Bug]: Error CS1705 on iOS with v22.2.1
Describe the bug 🐞
After updating ReactiveUI to version 22.2.0 in my .NET MAUI 9.0.110 app, I’m getting the following compilation error:
CSC: Error CS1705: Assembly 'ReactiveUI' with identity 'ReactiveUI, Version=22.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.iOS, Version=26.0.0.0, Culture=neutral, PublicKeyToken=***', which has a higher version than referenced assembly 'Microsoft.iOS' with identity 'Microsoft.iOS, Version=18.4.0.0, Culture=neutral, PublicKeyToken=***'
Environment:
ReactiveUI: 22.2.0 .NET MAUI: 9.0.110 Platform: iOS OS: macOS 15.5
It seems ReactiveUI references a newer version of Microsoft.iOS (26.0.0.0) than the one included in Maui 9.0.110 (18.4.0.0). Is there a recommended workaround or fix for this?
Step to reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
The app should compile without assembly version conflicts.
Screenshots 🖼️
No response
IDE
Rider macOS
Operating system
macOS
Version
15.5
Device
No response
ReactiveUI Version
22.2.1
Additional information ℹ️
No response
Solved: ReactiveUI 22.2.1 is built against Microsoft.iOS 26.0.0.0, but .NET MAUI 9.0.110 still references Microsoft.iOS 18.4.0.0. To compile successfully, you need to use at least .NET SDK version 9.0.306, which includes support for Microsoft.iOS 26.