mono / SkiaSharp.Extended

SkiaSharp is a cross-platform, comprehensive 2D graphics API for all .NET platforms. And, here is where you will find all sorts of extras that you can use with it.
https://mono.github.io/SkiaSharp.Extended
MIT License
218 stars 69 forks source link

[BUG] Cannot build iOS release/ipa. Failed to AOT compile aot-instances.dll #273

Open mdbill opened 2 months ago

mdbill commented 2 months ago

Description

Works on Android and iOS simulator. Cannot build iOS release/ipa. /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8043/targets/Xamarin.Shared.Sdk.targets(1214,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 139.

Code

Add SKLottieView to the .net 8 MauiTemplate app and build release or publish

Expected Behavior

build Release and generate an .ipa file

Actual Behavior

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8043/targets/Xamarin.Shared.Sdk.targets(1214,3): error : Failed to AOT compile aot-instances.dll, the AOT compiler exited with code 139.

Basic Information

mdbill commented 2 months ago

Turns out this only is a problem if the xaml/code is in a Class Library. I used a shared project instead to work-around this.