Compiled Models #483
Replies: 3 comments 2 replies
|
This is the page you need: https://communitytoolkit.github.io/Datasync/in-depth/client/advanced/maui-aot/ |
|
Is Offline data sync possible on iOS using the provided link? Not sure to be honest 🤔 Thanks Paul. |
|
Hi Adrian, Thanks The problem is Datasync Offline. The MAUI AOT page assumes you control the DbContext. So even if you follow the compiled‑model instructions perfectly, Datasync Offline will still crash on iOS NativeAOT. This is confirmed by the Datasync documentation itself, which warns that offline mode has known issues in AOT environments. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Adrian,
My app using CommunityToolkit.Datasync.Client V10.0.0 with OfflineDbContext is rejected by Apple 'Model building is not supported when publishing with NativeAOT. Use a compiled model.' Everything work fine on Windows, Android and when debugging my iPhone but release is always rejected. Is there a way around this?
Thanks
Paul.
All reactions