Skip to content

[BUG] Using Community.Toolkit.MAUI version 13.0.0 crashed MAUI app on iOS when Microsoft.Azure.Devices nuget is used in app #2966

@suvashree123

Description

@suvashree123

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Our MAUI project targets .NET 10 GA. We are currently using Community.Toolkit.MAUI version 9.0.3 . It works fine on iOS. When we upgrade the version to 13.0.0 (.NET 10 compatible as per the release notes of this version) app crashes on iOS with exception: error: Failed to load AOT module 'DotNetty.Buffers' while running in aot-only mode because a dependency cannot be found or it is out of date.
"
We use other packages like Microsoft.Azure.Devices, Microsoft.Azure.Devices.Client etc for communication with Azure.
It seems like the exception above coming from "DotNetty.Buffers" which is a transistive dependency of one of these 2 packages. Not sure why upgrading community.toolkit.MAUI to latest version causes crash due to these packages.

Expected Behavior

App should not crash on iOS with 13.0.0 version of community.toolkit.MAUI.

Steps To Reproduce

  1. Open the solution from reproduction reposity and run it on iOS device.
  2. Observe app crashing on launch.

Link to public reproduction project repository

https://github.com/Ratnapriya/SampleMCTCrash

Environment

- .NET MAUI CommunityToolkit: 13.0.0
- OS: iOS 18.0
- .NET MAUI:10.0.10

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions