MAUI iOS issue with libHarfBuzzSharp

Hi there,

This is the issue: when I try tu use this line>

var line = formattedText.FormatLine(charIndex, useHalfWidth ? halfWidth : maxWidth);

And there is the Nuget GemBox versions
PackageReference Include=GemBox.Pdf Version=17.0.1648
PackageReference Include=GemBox.Spreadsheet Version=49.0.1895

This issue is only on iOS.

Also when I try to build app from raider in Mac M1 pro machine y get this:

1>Xamarin.Shared.Sdk.targets(1648,3): Error : clang++ exited with code 1:
ld: building for ‘iOS-simulator’, but linking in object file (/Users/jesusalfredopadilla/.nuget/packages/gembox.pdf/17.0.1648/build/netstandard2.0/libpkcs11-mock.a[arm64]2) built for ‘iOS’
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

I need to delete packages and run app again, looks like that packages are not compatible with arm devices

Hi Chuy,

Note that HarfBuzzSharp and SkiaSharp have native assets packages that need to be included:

https://www.nuget.org/packages?q=HarfBuzzSharp.NativeAssets

https://www.nuget.org/packages?q=SkiaSharp.NativeAssets

So, please try installing HarfBuzzSharp.NativeAssets.iOS and SkiaSharp.NativeAssets.iOS.
Does this solve your issue?

Regards,
Mario

1 Like