xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.42k stars 507 forks source link

NativeAOT doesn't work with app extensions #20653

Open rolfbjarne opened 1 month ago

rolfbjarne commented 1 month ago

NativeAOT doesn't work with app extensions:

 System.Exception: No entrypoint module
     at ILCompiler.Program.Run() + 0x26bc
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass227_0.<.ctor>b__0(ParseResult result) + 0x304

from https://github.com/xamarin/xamarin-macios/issues/19381#issuecomment-2133653239.

We should try to make this happen.

It might require changes to NativeAOT if NativeAOT requires an entry point (since app extensions don't have an entry point).