microcharts-dotnet / Microcharts

Create cross-platform (Xamarin, Windows, ...) simple charts.
MIT License
2.02k stars 361 forks source link

[Question] Exception occured on IOS when use all the Chart ,But it works on windows and Andriod #350

Open Perryyang1979 opened 9 months ago

Perryyang1979 commented 9 months ago

In my .net Maui App

I use Reference "Microcharts.Maui" Version="1.0.0"

it works on windows and Andriod . Unfortunately, I got exception on iOS . Exception : [0:] An error occurred: '@rpath/libSkiaSharp.framework/libSkiaSharp'. Callstack: ' at SkiaSharp.SKPaint..ctor() at Microcharts.AxisBasedChart..ctor() at Microcharts.PointChart..ctor() at Microcharts.LineChart..ctor()

when I use IncomeChart = new LineChart { Entries = incomeEntries, IsAnimated = true, AnimationDuration = TimeSpan.FromSeconds(1.5f) };

Is there any some special setting I need to do for IOS?

crwsolutions commented 7 months ago

I got the same error. In my experience it does not work when I:

But it does work when I:

This bug report seems very related: https://github.com/mono/SkiaSharp/issues/2410