Friday, January 5, 2024
HomeiOS Developmentc# - Bug IOS 'SkiaSharp.SKTextBlob SkiaSharp.SKTextBlob.CreatePositioned

c# – Bug IOS ‘SkiaSharp.SKTextBlob SkiaSharp.SKTextBlob.CreatePositioned


In my .web maui functions, once I compile or deploy to publish to IOS I obtain this error:

'SkiaSharp.SKTextBlob SkiaSharp.SKTextBlob.CreatePositioned(System.String, SkiaSharp.SKFont, System.ReadOnlySpan`1<SkiaSharp.SKPoint>) '. 
at Svg.Skia.SkiaModelExtensions.Draw(CanvasCommand canvasCommand, SKCanvas skCanvas)
    at Svg.Skia.SkiaM and so on...

I attempted this :

<Goal Identify="VSMac_RemoveSystemMemory" BeforeTargets="ResolveAssemblyReferences">
  <ItemGroup>
    <_ReferenceToRemove Embrace="@(Reference)" Situation="'%(Reference.Id)'=='System.Reminiscence'" />
    <Reference Take away="@(_ReferenceToRemove)" />
    <Reference Embrace="System.Reminiscence" />
  </ItemGroup>
</Goal>

<Goal Identify="VS_RemoveSystemMemory" BeforeTargets="FindReferenceAssembliesForReferences">
  <ItemGroup>
    <_ReferencePathToRemove Embrace="@(ReferencePath)" Situation="'%(ReferencePath.NuGetPackageId)'=='System.Reminiscence'" />
    <ReferencePath Take away="@(_ReferencePathToRemove)" />
  </ItemGroup>
</Goal>

I take advantage of Skia in a number of locations within the software, right here is an instance :

<?xml model="1.0" encoding="utf-8" ?>
<ContentPage 
             xmlns:skia="clr-namespace:SkiaSharp.Prolonged.UI.Controls;meeting=SkiaSharp.Prolonged.UI"
             Title="">

                    <StackLayout Grid.Row="4" HeightRequest="600" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Margin="0">
                        
                        <skia:SKLottieView x:Identify="EmptyView"
                            Supply="Empty.json"
                            RepeatCount="-1"
                            HeightRequest="250"
                            WidthRequest="250"
                            HorizontalOptions="Heart" 
                            VerticalOptions="Heart"
                            IsVisible="false">
                        </skia:SKLottieView>



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments