Build Failure on Mac Catalyst and iOS with SmartComponents.LocalEmbeddings in .NET MAUI Blazor App
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp, ios, macos
- Domain
- build-system, mobile
Research direction
Start by reproducing the attached BlazorMAUI.zip project with SmartComponents.LocalEmbeddings on net8.0-ios and net8.0-maccatalyst. Compare dependency resolution for Microsoft.ML.OnnxRuntime 1.21.0 and 1.22.1, then verify that the project builds for iOS, Mac Catalyst, Windows, and Android without the manual workaround.
Written by the indexing model from the issue text.
Description
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.
BlazorMAUI.zip
Steps to Reproduce:
- Create a new .NET MAUI Blazor project.
- Add the
SmartComponents.LocalEmbeddingsNuGet package.- Attempt to build the project targeting
net8.0-iosornet8.0-maccatalyst.- Observe the build failure.
(or)
- Download the attached .NET MAUI Blazor project. BlazorMAUI.zip
- Attempt to build the project targeting
net8.0-iosornet8.0-maccatalyst.- 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" />
- Dominant language
- C#
- Stars
- 509
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/smartcomponents
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
dotnet/smartcomponents#51 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
dotnet/smartcomponents#50 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dotnet/smartcomponents#49 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
dotnet/smartcomponents#48 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
dotnet/smartcomponents#47 · 1 comment ·
All issues in dotnet/smartcomponents
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·