Skip to content

Build Failure on Mac Catalyst and iOS with SmartComponents.LocalEmbeddings in .NET MAUI Blazor App #44

@lingeshwaran-sf4984

Description

@lingeshwaran-sf4984

Description:

When a .NET MAUI Blazor application includes the SmartComponents.LocalEmbeddings NuGet package, the project fails to build specifically for the Mac Catalyst and iOS target frameworks. The build completes successfully for Windows and Android, but fails on macOS with the following error:

No matching framework found

However, updating the Microsoft.ML.OnnxRuntime package to the latest version (1.22.1) resolves the issue, allowing the project to build successfully across all platforms.

Image

BlazorMAUI.zip

Steps to Reproduce:

  1. Create a new .NET MAUI Blazor project.
  2. Add the SmartComponents.LocalEmbeddings NuGet package.
  3. Attempt to build the project targeting net8.0-ios or net8.0-maccatalyst.
  4. Observe the build failure.

(or)

  1. Download the attached .NET MAUI Blazor project. BlazorMAUI.zip
  2. Attempt to build the project targeting net8.0-ios or net8.0-maccatalyst.
  3. Observe the build failure.

Expected Behavior:

The project should build successfully for all target platforms, including Mac Catalyst and iOS.


Actual Behavior:

Build fails on Mac Catalyst and iOS with a framework mismatch error.


Environment:

  • .NET SDK: 8.0.203
  • MAUI Version: 8.0.x
  • macOS: macOS Sequoia 15.6
  • Target Frameworks: net8.0-ios, net8.0-maccatalyst
  • Device: Simulator and Physical Device
  • SmartComponents.LocalEmbeddings Version: 0.1.0-preview10148
  • Microsoft.ML.OnnxRuntime Version: 1.21.0 (fails), 1.22.1 (works)

Workaround:

Manually updating the Microsoft.ML.OnnxRuntime package to version 1.22.1 resolves the build issue.

<PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.22.1" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions